/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 137 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 = 7479
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin69
RA = 184.476, Dec = 30.1177
tmin = 257212801, tmax = 257472001
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='453038', job_status='RUN', time_executed='2021-09-05 06:08:29.134070', time_epoch_executed='1630847309.13' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453038/ft1_4FGL_J1217.9+3007_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453038/ft2_4FGL_J1217.9+3007_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453038/ft1_4FGL_J1217.9+3007_daily_bin69.fits outfile=/scratch/kocevski/453038/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin69.fits ra=184.476 dec=30.1177 rad=12.0 tmin=257212801.0 tmax=257472001.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 2.42
user 2.11
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453038/ft1_filtered_4FGL_J1217.9+3007_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/453038/ft2_4FGL_J1217.9+3007_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/453038/ltcube_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.fits outfile=/scratch/kocevski/453038/expmap_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.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/453038/ltcube_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.fits
.....................!
real 191.13
user 186.27
sys 4.26

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/453038/ft1_filtered_4FGL_J1217.9+3007_daily_bin69.fits scfile=/scratch/kocevski/453038/ft2_4FGL_J1217.9+3007_daily_bin69.fits outfile=/scratch/kocevski/453038/cmap_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.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.54
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453038/ft1_filtered_4FGL_J1217.9+3007_daily_bin69.fits scfile=/scratch/kocevski/453038/ft2_4FGL_J1217.9+3007_daily_bin69.fits outfile=/scratch/kocevski/453038/cmap_HighResolution_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.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.53
user 0.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/453038/ft1_filtered_4FGL_J1217.9+3007_daily_bin69.fits', '/scratch/kocevski/453038/ft2_4FGL_J1217.9+3007_daily_bin69.fits', expMap='/scratch/kocevski/453038/expmap_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.fits', expCube='/scratch/kocevski/453038/ltcube_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/453038/Model_4FGL_J1217.9+3007_daily_bin69.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/453038/ft1_filtered_4FGL_J1217.9+3007_daily_bin69.fits
Spacecraft file(s): /scratch/kocevski/453038/ft2_4FGL_J1217.9+3007_daily_bin69.fits
Exposure map: /scratch/kocevski/453038/expmap_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.fits
Exposure cube: /scratch/kocevski/453038/ltcube_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/453038/Model_4FGL_J1217.9+3007_daily_bin69.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) = 7154.74176396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2028       1.0000         .10000E-03   10000.    
     4 'norm      '    .25730       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12261E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2975       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.225       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.4234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6408       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6801       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0393       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .56699       1.0000         .10000E-03   10000.    
    18 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11404E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .14711E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    32.380       1.0000         .10000E-03   10000.    
    26 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.661       1.0000         .10000E-03   10000.    
    28 'norm      '    11.462       1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1159       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82951       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7154.718     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     3481 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.8911       -.36275E-05** at limit **
   2  Prefactor     .10037E-03    20.667       -.17721E-05** at limit **
   3  Prefactor     2.2018        3.6192       -.88539E-05   -.35712E-02
   4  norm          .25704        1.2745        .21195E-06    .81316E-05
   5  Prefactor     .10147E-03    21.551        .19327E-05** at limit **
   6  Prefactor     4.2967        2.0472       -.40810E-06   -.20008E-03
   7  Prefactor     5.2474        2.5361       -.46719E-06   -.29089E-03
   8  Prefactor     31.229        1.9535        .24222E-06   -.19514E-02
   9  norm          1.2188        .78081       -.21498E-07   -.28953E-04
  10  Prefactor     .10007E-03    4.0126        .42052E-05** at limit **
  11  Prefactor     .10000E-03    9.8621        .19308E-05** at limit **
  12  norm          6.4233        2.7287       -.38785E-06   -.27493E-03
  13  Prefactor     3.6382        1.0286        .10153E-06    .22655E-03
  14  Prefactor     2.6798        1.9164        .21314E-06    .37422E-04
  15  Prefactor     6.0392        2.3406       -.72886E-07   -.12304E-03
  16  Prefactor     .10000E-03    1.8732       -.48803E-06** at limit **
  17  norm          .56685        .24046        .35748E-07    .18893E-03
  18  norm          .10001E-03    4.4301       -.11836E-05** at limit **
  19  Prefactor     .10000E-03    4.1777        .35368E-06** at limit **
  20  Prefactor     13.260        1.1733       -.69707E-07   -.29731E-04
  21  Prefactor     .10143E-03    41.828        .31311E-05** at limit **
  22  Prefactor     .10000E-03    2.7438        .19850E-06** at limit **
  23  Prefactor     .10000E-03    1.9810       -.29386E-06** at limit **
  24  norm          .10005E-03    1.6229       -.68043E-06** at limit **
  25  Prefactor     32.434        15.354        .18100E-05   -.10513E-01
  26  norm          .10000E-03    1.6829       -.12310E-05** at limit **
  27  Prefactor     18.695        4.4808        .28510E-06    .11865E-02
  28  norm          11.473        1.3482        .20799E-06    .38677E-03
  29  norm          .10006E-03    4.0203       -.24340E-05** at limit **
  30  Normalizat    1.1161        .18150        .29593E-05   -.22080E-05
  31  Prefactor     .82954        .20249       -.16099E-05   -.80047E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.000100373
  Prefactor  = 2.20183
  norm       = 0.257043
  Prefactor  = 0.000101472
  Prefactor  = 4.2967
  Prefactor  = 5.24744
  Prefactor  = 31.229
  norm       = 1.21884
  Prefactor  = 0.000100066
  Prefactor  = 0.000100004
  norm       = 6.42333
  Prefactor  = 3.6382
  Prefactor  = 2.67978
  Prefactor  = 6.03916
  Prefactor  = 0.0001
  norm       = 0.566853
  norm       = 0.000100014
  Prefactor  = 0.000100002
  Prefactor  = 13.2604
  Prefactor  = 0.000101431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100053
  Prefactor  = 32.4336
  norm       = 0.0001
  Prefactor  = 18.6954
  norm       = 11.4728
  norm       = 0.000100062
  Normalizat = 1.1161
  Prefactor  = 0.82954
 **********
 **   18 **HESSE 
 **********

 FCN=   7154.718     FROM HESSE     STATUS=OK           712 CALLS     4193 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.5634        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10037E-03    22.307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2018        3.8958        .69300E-02   -1.5411    
   4  norm          .25704        .93314        .26609E-01   -1.5607    
   5  Prefactor     .10147E-03    28.357        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2967        2.0621        .48584E-02   -1.5293    
   7  Prefactor     5.2474        20.072        .43797E-02   -1.5250    
   8  Prefactor     31.229        49.413        .17926E-02   -1.4590    
   9  norm          1.2188        .79836        .10218E-01   -1.5487    
  10  Prefactor     .10007E-03    1.6544        .58995E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.833        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.4233        2.7238        .39590E-02   -1.5201    
  13  Prefactor     3.6382        6.2865        .52930E-02   -1.5326    
  14  Prefactor     2.6798        1.9123        .62227E-02   -1.5381    
  15  Prefactor     6.0392        2.3495        .40846E-02   -1.5216    
  16  Prefactor     .10000E-03    1.8651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .56685        .24421        .57891E-02   -1.5557    
  18  norm          .10001E-03    2.2858        .43515E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1950        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.260        12.661        .27500E-02   -1.4980    
  21  Prefactor     .10143E-03    48.365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10005E-03    2.5001        .66545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     32.434        28.910        .17604E-02   -1.4568    
  26  norm          .10000E-03    1.6631        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.695        19.381        .23179E-02   -1.4843    
  28  norm          11.473        5.0326        .29583E-02   -1.5030    
  29  norm          .10006E-03    5.5390        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1161        .16517        .37388E-01   -.89236    
  31  Prefactor     .82954        .17792        .67622E-01   -.98648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62497e-07
Minuit parameter uncertainties:
  1  0.000469525
  2  0.00577057
  3  3.89623
  4  0.933194
  5  0.0129262
  6  2.06214
  7  20.0975
  8  49.4778
  9  0.798364
  10  0.000661703
  11  0.000408478
  12  2.72382
  13  6.28766
  14  1.91232
  15  2.34958
  16  1.07691e-06
  17  0.244209
  18  0.000362014
  19  0.000174788
  20  12.6635
  21  0.0166548
  22  3.02768e-06
  23  1.81388e-06
  24  0.000731013
  25  28.9228
  26  3.64954e-06
  27  19.3871
  28  5.0328
  29  0.00117407
  30  0.16525
  31  0.178041
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  6.423e+00  2.724e+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:  8.295e-01  1.780e-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:  1.116e+00  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.30
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 5.59e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 4.98e-05 +/- 2.11e-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) = 7153.72913276
delta logL = 0.988538350239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7153.71845221
delta logL = 0.999218899791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0491       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4416       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82307       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=   7153.718     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0491        2.5678        .40812E-02   -.48468E-02
   2  alpha         1.4417        .24842        .21462       -.52803E-04
   3  Normalizat    1.1319        .15458        .36830E-01    .26273E-04
   4  Prefactor     .82306        .17627        .67902E-01    .26718E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.04913
  alpha      = 1.44165
  Normalizat = 1.13185
  Prefactor  = 0.823064
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0491        2.7778        .86060E-04   -1.5216    
   2  alpha         1.4417        .28160        .90527E-02   -.43713    
   3  Normalizat    1.1319        .17752        .22927E-03   -.88736    
   4  Prefactor     .82306        .20219        .30041E-03   -.98884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03867e-09
Minuit parameter uncertainties:
  1  2.77787
  2  0.282333
  3  0.177613
  4  0.20237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453038': 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) = 7153.71845221
delta logL = 0.999218900781

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  6.049e+00  2.778e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.442e+00  2.823e-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:  8.231e-01  2.024e-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:  1.132e+00  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.44
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.44 +/- 0.28
Photon Flux (Free Index): 3.63e-08 +/- 1.94e-08
Energy Flux (Free Index): 1.02e-04 +/- 6.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/453038/cmap_HighResolution_257212801_257472001_4FGL_J1217.9+3007_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.59e-08', energy_flux2='1.02e-04', photon_flux_error='2.37e-08', dlogl='9.99e-01', energy_flux='4.98e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-09-05 06:22:09.215584', photon_index_error2='0.28', photon_index2='1.44', ts='32.30', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='6.86e-05', EG='1.12', time_epoch_completed='1630848129.22', return_code='0', job_id='453038', GAL2='0.82', EG2='1.13', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='1.94e-08', ts2='34.44', photon_index='1.85' WHERE bin_id='69' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 453038: <4FGL_J1217.9+3007_daily_bin69> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin69> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:05:45 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:05:46 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:05:46 2021
Terminated at Sun Sep  5 06:22:09 2021
Results reported at Sun Sep  5 06:22:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin69 184.476 30.1177 257212801 257472001 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 :                                   817.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

