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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1525
RA = 184.476, Dec = 30.1177
tmin = 634608001, tmax = 634867201
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='463348', job_status='RUN', time_executed='2021-09-05 06:37:55.534959', time_epoch_executed='1630849075.53' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463348/ft1_4FGL_J1217.9+3007_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463348/ft2_4FGL_J1217.9+3007_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463348/ft1_4FGL_J1217.9+3007_daily_bin1525.fits outfile=/scratch/kocevski/463348/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1525.fits ra=184.476 dec=30.1177 rad=12.0 tmin=634608001.0 tmax=634867201.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.14
user 2.86
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/463348/ft2_4FGL_J1217.9+3007_daily_bin1525.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/463348/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1525.fits evtable="EVENTS" outfile="/scratch/kocevski/463348/ft1_filtered_4FGL_J1217.9+3007_daily_bin1525.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463348/ft1_filtered_4FGL_J1217.9+3007_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/463348/ft2_4FGL_J1217.9+3007_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/463348/ltcube_634608001_634867201_4FGL_J1217.9+3007_daily_bin1525.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/463348/ft2_4FGL_J1217.9+3007_daily_bin1525.fits
.....................!
real 12.87
user 12.29
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463348/ft1_filtered_4FGL_J1217.9+3007_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/463348/ft2_4FGL_J1217.9+3007_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/463348/ltcube_634608001_634867201_4FGL_J1217.9+3007_daily_bin1525.fits outfile=/scratch/kocevski/463348/expmap_634608001_634867201_4FGL_J1217.9+3007_daily_bin1525.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/463348/ltcube_634608001_634867201_4FGL_J1217.9+3007_daily_bin1525.fits
.....................!
real 193.58
user 187.61
sys 4.85

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/463348/ft1_filtered_4FGL_J1217.9+3007_daily_bin1525.fits scfile=/scratch/kocevski/463348/ft2_4FGL_J1217.9+3007_daily_bin1525.fits outfile=/scratch/kocevski/463348/cmap_634608001_634867201_4FGL_J1217.9+3007_daily_bin1525.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.58
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1826       1.0000         .10000E-03   10000.    
     4 'norm      '    17.086       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .60214E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    349.02       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11396E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.0445       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.373       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .96952       1.0000         .10000E-03   10000.    
    18 'norm      '    20.455       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.625       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.6457       1.0000         .10000E-03   10000.    
    28 'norm      '    5.2358       1.0000         .10000E-03   10000.    
    29 'norm      '    50.112       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3422       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .81524       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=   2261.498     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4138 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.346        .10565E-05** at limit **
   2  Prefactor     .10000E-03    40.927        .25845E-06** at limit **
   3  Prefactor     9.1675        85.392       -.64488E-06   -.40840E-05
   4  norm          17.097        14.294        .37042E-07   -.52301E-05
   5  Prefactor     .10000E-03    1324.0        .29140E-04** at limit **
   6  Prefactor     7.6556        8.8525       -.10892E-05   -.21259E-03
   7  Prefactor     348.96        215.07        .13038E-05   -.20788E-04
   8  Prefactor     .10000E-03    293.07       -.70778E-05** at limit **
   9  norm          6.0444        4.2579       -.15691E-06   -.13931E-03
  10  Prefactor     .10000E-03    5.2504       -.57674E-07** at limit **
  11  Prefactor     .10000E-03    57.712       -.15226E-05** at limit **
  12  norm          .10000E-03    2.9846       -.49333E-07** at limit **
  13  Prefactor     .10000E-03    16.224       -.21593E-06** at limit **
  14  Prefactor     .10000E-03    2.0425       -.27951E-07** at limit **
  15  Prefactor     12.374        6.2317       -.79398E-08   -.34732E-04
  16  Prefactor     .10000E-03    9.7703       -.47452E-07** at limit **
  17  norm          .96951        .57709        .12041E-07   -.73590E-04
  18  norm          20.459        12.454        .22050E-07   -.14050E-04
  19  Prefactor     .10000E-03    27.275       -.16663E-06** at limit **
  20  Prefactor     .10000E-03    119.29        .47429E-06** at limit **
  21  Prefactor     .10000E-03    41.454       -.52980E-08** at limit **
  22  Prefactor     .10000E-03    3.5694       -.14057E-07** at limit **
  23  Prefactor     .10000E-03    16.222       -.97209E-07** at limit **
  24  norm          .10000E-03    4.4829        .25548E-06** at limit **
  25  Prefactor     37.739        55.481       -.20598E-05   -.61351E-07
  26  norm          .10000E-03    1.4843       -.12823E-08** at limit **
  27  Prefactor     7.6328        23.400        .44219E-06   -.11319E-05
  28  norm          5.2164        17.232        .22257E-05   -.26684E-04
  29  norm          50.132        28.470       -.72089E-06   -.11474E-04
  30  Normalizat    1.3424        .39756       -.27985E-05   -.14308E-05
  31  Prefactor     .81508        .41076        .36566E-05   -.39874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.1675
  norm       = 17.0966
  Prefactor  = 0.0001
  Prefactor  = 7.65563
  Prefactor  = 348.956
  Prefactor  = 0.0001
  norm       = 6.04444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3738
  Prefactor  = 0.0001
  norm       = 0.96951
  norm       = 20.4587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.739
  norm       = 0.0001
  Prefactor  = 7.63277
  norm       = 5.21644
  norm       = 50.1322
  Normalizat = 1.34236
  Prefactor  = 0.815076
 **********
 **   18 **HESSE 
 **********

 FCN=   2261.498     FROM HESSE     STATUS=OK           612 CALLS     4750 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1675        85.227        .13226E-03   -1.5102    
   4  norm          17.097        14.315        .96894E-04   -1.4881    
   5  Prefactor     .10000E-03    1355.7        .37869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6556        9.0015        .14492E-03   -1.5155    
   7  Prefactor     348.96        214.34        .10897E-03   -1.1950    
   8  Prefactor     .10000E-03    291.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0444        4.2640        .78652E-04   -1.5216    
  10  Prefactor     .10000E-03    5.2538        .10642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    57.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0012        .80206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0475        .66363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.374        6.2294        .80455E-04   -1.5004    
  16  Prefactor     .10000E-03    9.8545        .14509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .96951        .57673        .26457E-04   -1.5511    
  18  norm          20.459        12.455        .88560E-04   -1.4803    
  19  Prefactor     .10000E-03    27.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    120.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    41.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5710        .87753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.5062        .98225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.739        56.333        .65340E-04   -1.4479    
  26  norm          .10000E-03    1.4847        .56585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.6328        23.342        .14503E-03   -1.5155    
  28  norm          5.2164        17.547        .87834E-03   -1.5251    
  29  norm          50.132        28.878        .56650E-04   -1.4291    
  30  Normalizat    1.3424        .45539        .28293E-03   -.82311    
  31  Prefactor     .81508        .46461        .38841E-03   -.99175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01578e-10
Minuit parameter uncertainties:
  1  4.18809e-05
  2  1.06148e-05
  3  56.0094
  4  14.3183
  5  0.000903425
  6  9.00309
  7  214.833
  8  0.000550655
  9  4.26418
  10  1.4424e-06
  11  4.03957e-05
  12  3.51972e-07
  13  1.52442e-06
  14  1.68945e-07
  15  6.22971
  16  3.46969e-07
  17  0.576735
  18  12.4565
  19  4.4371e-08
  20  6.41382e-05
  21  6.70573e-06
  22  6.01896e-08
  23  8.81008e-06
  24  4.4218e-06
  25  56.4121
  26  1.21825e-07
  27  23.37
  28  17.5642
  29  28.8861
  30  0.456767
  31  0.466871
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.000e-04  3.520e-07  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.151e-01  4.669e-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.342e+00  4.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463348/likelihoodResults_634608001_634867201_4FGL_J1217.9+3007_daily_bin1525.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2261.49961784
delta logL = -0.00136413036989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2261.49825371
delta logL = 6.925802154e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8563       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81508       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2261.498     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      242 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    343.13        .80223E-03** at limit **
   2  alpha         1.9053        3.4217        .50000        .94019E-08
   3  Normalizat    1.3424        .11700        .28293E-03   -.96236E-05
   4  Prefactor     .81508        .12913        .38840E-03   -.73615E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90534
  Normalizat = 1.34236
  Prefactor  = 0.815079
 **********
 **   18 **HESSE 
 **********

 FCN=   2261.498     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4251        .16045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9053        3.9244        .50000       -.24017    
   3  Normalizat    1.3424        .40921        .11317E-04   -.82311    
   4  Prefactor     .81508        .45078        .15536E-04   -.99175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09719e-12
Minuit parameter uncertainties:
  1  1.21468e-06
  2  179.774
  3  0.410203
  4  0.452842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463348': 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) = 2261.49825367
delta logL = 4.47294041805e-08

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.000e-04  1.215e-06  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.905e+00  1.798e+02  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.151e-01  4.528e-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.342e+00  4.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.476 30.118

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/463348/cmap_HighResolution_634608001_634867201_4FGL_J1217.9+3007_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-05 06:47:53.393502', job_id='463348', GAL2='0.82', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630849673.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1525' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:47:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 463348: <4FGL_J1217.9+3007_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1525> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:35:22 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:35:23 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:35:23 2021
Terminated at Sun Sep  5 06:47:54 2021
Results reported at Sun Sep  5 06:47:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1525 184.476 30.1177 634608001 634867201 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 :                                   545.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            752 sec.

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

