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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1011
RA = 184.476, Dec = 30.1177
tmin = 501379201, tmax = 501638401
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='460128', job_status='RUN', time_executed='2021-09-05 06:25:52.118677', time_epoch_executed='1630848352.12' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460128

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460128/ft1_4FGL_J1217.9+3007_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460128/ft2_4FGL_J1217.9+3007_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460128/ft1_4FGL_J1217.9+3007_daily_bin1011.fits outfile=/scratch/kocevski/460128/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1011.fits ra=184.476 dec=30.1177 rad=12.0 tmin=501379201.0 tmax=501638401.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.67
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460128/ft1_filtered_4FGL_J1217.9+3007_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/460128/ft2_4FGL_J1217.9+3007_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/460128/ltcube_501379201_501638401_4FGL_J1217.9+3007_daily_bin1011.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/460128/ft2_4FGL_J1217.9+3007_daily_bin1011.fits
.....................!
real 12.23
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460128/ft1_filtered_4FGL_J1217.9+3007_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/460128/ft2_4FGL_J1217.9+3007_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/460128/ltcube_501379201_501638401_4FGL_J1217.9+3007_daily_bin1011.fits outfile=/scratch/kocevski/460128/expmap_501379201_501638401_4FGL_J1217.9+3007_daily_bin1011.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/460128/ltcube_501379201_501638401_4FGL_J1217.9+3007_daily_bin1011.fits
.....................!
real 190.47
user 185.56
sys 4.43

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/460128/ft1_filtered_4FGL_J1217.9+3007_daily_bin1011.fits scfile=/scratch/kocevski/460128/ft2_4FGL_J1217.9+3007_daily_bin1011.fits outfile=/scratch/kocevski/460128/cmap_501379201_501638401_4FGL_J1217.9+3007_daily_bin1011.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460128/ft1_filtered_4FGL_J1217.9+3007_daily_bin1011.fits scfile=/scratch/kocevski/460128/ft2_4FGL_J1217.9+3007_daily_bin1011.fits outfile=/scratch/kocevski/460128/cmap_HighResolution_501379201_501638401_4FGL_J1217.9+3007_daily_bin1011.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.665       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8117       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2073       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.219       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22736E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.988       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9594       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3999       1.0000         .10000E-03   10000.    
    17 'norm      '    .27987       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6996       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.1023       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13656E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    13.747       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.5808       1.0000         .10000E-03   10000.    
    28 'norm      '    1.1792       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0835       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2071       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=   7503.075     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     3545 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7909       -.15623E-05** at limit **
   2  Prefactor     15.665        12.146        .87471E-07   -.22302E-04
   3  Prefactor     3.8120        4.5106        .10134E-05   -.52771E-03
   4  norm          .10000E-03    .30391       -.57523E-07** at limit **
   5  Prefactor     .10000E-03    10.601        .16232E-05** at limit **
   6  Prefactor     1.2077        1.5136       -.17856E-06   -.95301E-03
   7  Prefactor     .10000E-03    7.3131        .29621E-05** at limit **
   8  Prefactor     .10000E-03    10.648        .15944E-05** at limit **
   9  norm          12.219        2.0516       -.21145E-07    .31438E-03
  10  Prefactor     .10000E-03    1.5650       -.34445E-07** at limit **
  11  Prefactor     .10000E-03    16.107       -.10554E-05** at limit **
  12  norm          10.988        4.1364        .16909E-05   -.42331E-03
  13  Prefactor     .10000E-03    2.7140        .21990E-07** at limit **
  14  Prefactor     2.9595        2.3009       -.75065E-06    .30639E-03
  15  Prefactor     .15801        1.0250       -.90282E-06    .25924E-03
  16  Prefactor     4.4001        4.8304       -.22278E-06   -.55198E-04
  17  norm          .27990        .22332       -.17252E-07   -.11905E-02
  18  norm          .10000E-03    2.0795        .17833E-06** at limit **
  19  Prefactor     6.6997        6.1466        .94050E-06    .16316E-02
  20  Prefactor     .10000E-03    8.9405       -.39763E-05** at limit **
  21  Prefactor     .10000E-03    116.14       -.24728E-05** at limit **
  22  Prefactor     .10000E-03    5.0373        .61744E-06** at limit **
  23  Prefactor     .10000E-03    2.9019       -.31227E-07** at limit **
  24  norm          3.0906        5.0533       -.72841E-06   -.69330E-03
  25  Prefactor     .10000E-03    55.027        .50136E-05** at limit **
  26  norm          13.747        5.3189       -.81263E-07    .52101E-04
  27  Prefactor     4.5810        18.525       -.59459E-06   -.32372E-04
  28  norm          1.1787        2.4515       -.46592E-06   -.75072E-03
  29  norm          .10000E-03    3.3752        .51981E-07** at limit **
  30  Normalizat    1.0834        .17707       -.83162E-08    .15959E-03
  31  Prefactor     1.2072        .20216       -.32950E-06    .12423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.6653
  Prefactor  = 3.812
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9881
  Prefactor  = 0.0001
  Prefactor  = 2.95945
  Prefactor  = 0.158009
  Prefactor  = 4.40012
  norm       = 0.279897
  norm       = 0.0001
  Prefactor  = 6.69975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.09062
  Prefactor  = 0.0001
  norm       = 13.7466
  Prefactor  = 4.58102
  norm       = 1.17875
  norm       = 0.0001
  Normalizat = 1.08339
  Prefactor  = 1.20721
 **********
 **   18 **HESSE 
 **********

 FCN=   7503.075     FROM HESSE     STATUS=OK           628 CALLS     4173 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.665        12.140        .10120E-03   -1.4916    
   3  Prefactor     3.8120        4.4481        .18938E-03   -1.5317    
   4  norm          .10000E-03    .39681        .93067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2077        1.4982        .11535E-03   -1.5488    
   7  Prefactor     .10000E-03    7.2388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.219        2.0520        .48390E-04   -1.5009    
  10  Prefactor     .10000E-03    8.1737        .20979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.988        4.0339        .95143E-04   -1.5045    
  13  Prefactor     .10000E-03    2.7298        .13934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9595        2.2929        .10600E-03   -1.5364    
  15  Prefactor     .15801        4.0924        .16381E-02   -1.5628    
  16  Prefactor     4.4001        4.8174        .19200E-03   -1.5288    
  17  norm          .27990        .21361        .34656E-03   -1.5602    
  18  norm          .10000E-03    2.0975        .12186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.6997        6.4943        .77513E-03   -1.5190    
  20  Prefactor     .10000E-03    8.8188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    116.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.0837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9185        .14394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.0906        5.0910        .23023E-03   -1.5356    
  25  Prefactor     .10000E-03    57.004        .41086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.747        5.3196        .10803E-03   -1.4966    
  27  Prefactor     4.5810        18.509        .18807E-03   -1.5280    
  28  norm          1.1787        2.3949        .18860E-03   -1.5491    
  29  norm          .10000E-03    3.3911        .15474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0834        .21222        .26429E-03   -.90287    
  31  Prefactor     1.2072        .24327        .29941E-03   -.86110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11053e-09
Minuit parameter uncertainties:
  1  2.58424e-05
  2  12.1417
  3  4.44848
  4  1.01023e-06
  5  3.68583e-05
  6  1.49825
  7  6.79366e-05
  8  3.98e-05
  9  2.05206
  10  0.00012572
  11  1.32337e-05
  12  4.03395
  13  2.398e-06
  14  2.29295
  15  1.60788
  16  4.81784
  17  0.213615
  18  8.60684e-07
  19  6.49495
  20  9.59095e-05
  21  0.000437612
  22  9.18711e-06
  23  4.92115e-06
  24  5.09168
  25  2.34263e-05
  26  5.31982
  27  18.426
  28  2.39511
  29  1.66424e-05
  30  0.21239
  31  0.243497
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.099e+01  4.034e+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.207e+00  2.435e-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.083e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.61
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 9.57e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 8.52e-05 +/- 3.13e-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) = 7503.06891097
delta logL = 0.00629452823159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7503.06865479
delta logL = 0.00655070438097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.988       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8226       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2054       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=   7503.069     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      201 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.986        5.4993        .30215E-02    .20675E-04
   2  alpha         1.8223        .36824        .21639        .88782E-04
   3  Normalizat    1.0868        .17246        .59685E-01    .16819E-03
   4  Prefactor     1.2054        .20255        .67733E-01    .11525E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9861
  alpha      = 1.8223
  Normalizat = 1.08684
  Prefactor  = 1.20538
 **********
 **   18 **HESSE 
 **********

 FCN=   7503.069     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.986        3.8044        .96096E-04   -1.5045    
   2  alpha         1.8223        .27784        .87219E-02   -.27452    
   3  Normalizat    1.0868        .20596        .26396E-03   -.90175    
   4  Prefactor     1.2054        .24320        .29964E-03   -.86166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86469e-11
Minuit parameter uncertainties:
  1  3.80452
  2  0.27846
  3  0.206116
  4  0.243427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460128': 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) = 7503.06865418
delta logL = 0.00655131559051

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.099e+01  3.805e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.822e+00  2.785e-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.205e+00  2.434e-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.087e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.83
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.82 +/- 0.28
Photon Flux (Free Index): 9.21e-08 +/- 4.40e-08
Energy Flux (Free Index): 8.87e-05 +/- 4.47e-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/460128/cmap_HighResolution_501379201_501638401_4FGL_J1217.9+3007_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.57e-08', energy_flux2='8.87e-05', photon_flux_error='3.51e-08', dlogl='6.55e-03', energy_flux='8.52e-05', photon_flux2='9.21e-08', job_status='DONE', time_completed='2021-09-05 06:40:31.110211', photon_index_error2='0.28', photon_index2='1.82', ts='37.61', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='4.47e-05', EG='1.08', time_epoch_completed='1630849231.11', return_code='0', job_id='460128', GAL2='1.21', EG2='1.09', return_code2='0', energy_flux_error='3.13e-05', photon_flux_error2='4.40e-08', ts2='37.83', photon_index='1.85' WHERE bin_id='1011' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:40:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 460128: <4FGL_J1217.9+3007_daily_bin1011> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1011> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:25:38 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:25:39 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:25:39 2021
Terminated at Sun Sep  5 06:40:31 2021
Results reported at Sun Sep  5 06:40:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1011 184.476 30.1177 501379201 501638401 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 :                                   871.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

