/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 24 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 = 5933
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1081
RA = 184.476, Dec = 30.1177
tmin = 519523201, tmax = 519782401
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='460236', job_status='RUN', time_executed='2021-09-05 06:26:28.410379', time_epoch_executed='1630848388.41' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460236

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460236/ft1_4FGL_J1217.9+3007_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460236/ft2_4FGL_J1217.9+3007_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460236/ft1_4FGL_J1217.9+3007_daily_bin1081.fits outfile=/scratch/kocevski/460236/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1081.fits ra=184.476 dec=30.1177 rad=12.0 tmin=519523201.0 tmax=519782401.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.89
user 2.72
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460236/ft1_filtered_4FGL_J1217.9+3007_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/460236/ft2_4FGL_J1217.9+3007_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/460236/ltcube_519523201_519782401_4FGL_J1217.9+3007_daily_bin1081.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/460236/ft2_4FGL_J1217.9+3007_daily_bin1081.fits
.....................!
real 10.22
user 9.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460236/ft1_filtered_4FGL_J1217.9+3007_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/460236/ft2_4FGL_J1217.9+3007_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/460236/ltcube_519523201_519782401_4FGL_J1217.9+3007_daily_bin1081.fits outfile=/scratch/kocevski/460236/expmap_519523201_519782401_4FGL_J1217.9+3007_daily_bin1081.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/460236/ltcube_519523201_519782401_4FGL_J1217.9+3007_daily_bin1081.fits
.....................!
real 192.73
user 187.65
sys 4.27

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/460236/ft1_filtered_4FGL_J1217.9+3007_daily_bin1081.fits scfile=/scratch/kocevski/460236/ft2_4FGL_J1217.9+3007_daily_bin1081.fits outfile=/scratch/kocevski/460236/cmap_519523201_519782401_4FGL_J1217.9+3007_daily_bin1081.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460236/ft1_filtered_4FGL_J1217.9+3007_daily_bin1081.fits scfile=/scratch/kocevski/460236/ft2_4FGL_J1217.9+3007_daily_bin1081.fits outfile=/scratch/kocevski/460236/cmap_HighResolution_519523201_519782401_4FGL_J1217.9+3007_daily_bin1081.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2711       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .99514E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2018       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0564       1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.337       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.652       1.0000         .10000E-03   10000.    
     9 'norm      '    5.9452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.595       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6454       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7478       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9094       1.0000         .10000E-03   10000.    
    17 'norm      '    .57026E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    18.893       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5372       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    57.271       1.0000         .10000E-03   10000.    
    26 'norm      '    4.5065       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10828E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .82873       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0539       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=   5156.591     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4163 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3067        16.300       -.37726E-05   -.10614E-03
   2  Prefactor     .10005E-03    11.062        .11681E-05** at limit **
   3  Prefactor     1.2024        9.3023        .48111E-05   -.54787E-04
   4  norm          3.2435        1.6759       -.35776E-07   -.16852E-03
   5  Prefactor     .10000E-03    19.358       -.27008E-06** at limit **
   6  Prefactor     3.0570        2.1195        .86996E-07   -.41090E-04
   7  Prefactor     57.361        35.793       -.10458E-05    .41329E-04
   8  Prefactor     46.687        57.446        .11024E-05    .88178E-04
   9  norm          5.9456        1.7482        .12093E-07   -.20298E-03
  10  Prefactor     .10000E-03    2.9223       -.12188E-06** at limit **
  11  Prefactor     43.630        39.918        .11862E-05    .15502E-03
  12  norm          5.4683        3.2623        .43882E-07   -.25678E-05
  13  Prefactor     7.6450        8.2381        .36495E-06   -.27440E-04
  14  Prefactor     .10000E-03    1.8159        .50676E-07** at limit **
  15  Prefactor     4.7476        2.5460        .30042E-07   -.80377E-04
  16  Prefactor     7.9112        7.6925        .19057E-05   -.16771E-03
  17  norm          .57015E-01    .16608        .45661E-07    .39256E-03
  18  norm          18.894        7.5615       -.26655E-06   -.36129E-04
  19  Prefactor     3.5364        13.195        .11606E-05   -.20818E-05
  20  Prefactor     .10000E-03    5.5204        .12855E-07** at limit **
  21  Prefactor     .10000E-03    27.930        .26712E-06** at limit **
  22  Prefactor     .10000E-03    6.3662       -.22993E-06** at limit **
  23  Prefactor     .10000E-03    2.5951       -.35582E-07** at limit **
  24  norm          .10000E-03    3.0709        .97079E-07** at limit **
  25  Prefactor     57.275        30.243        .66035E-06    .90477E-05
  26  norm          4.5059        3.9585        .15297E-06   -.11997E-04
  27  Prefactor     .10000E-03    10.194        .27474E-07** at limit **
  28  norm          .10000E-03    1.7654        .41327E-07** at limit **
  29  norm          .10000E-03    2.1288        .98322E-08** at limit **
  30  Normalizat    .82854        .20956       -.41718E-05   -.93823E-04
  31  Prefactor     1.0541        .22478        .18188E-05   -.26950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30672
  Prefactor  = 0.000100048
  Prefactor  = 1.20237
  norm       = 3.24353
  Prefactor  = 0.0001
  Prefactor  = 3.05697
  Prefactor  = 57.3611
  Prefactor  = 46.6869
  norm       = 5.94559
  Prefactor  = 0.0001
  Prefactor  = 43.6301
  norm       = 5.46827
  Prefactor  = 7.64499
  Prefactor  = 0.0001
  Prefactor  = 4.74762
  Prefactor  = 7.91117
  norm       = 0.0570155
  norm       = 18.8942
  Prefactor  = 3.5364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.2754
  norm       = 4.50588
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.828537
  Prefactor  = 1.05412
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.591     FROM HESSE     STATUS=OK           622 CALLS     4785 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3067        15.563        .16030E-03   -1.5206    
   2  Prefactor     .10005E-03    51.199        .42358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2024        9.0513        .38967E-03   -1.5489    
   4  norm          3.2435        1.6779        .61895E-04   -1.5348    
   5  Prefactor     .10000E-03    19.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0570        2.1193        .83092E-04   -1.5358    
   7  Prefactor     57.361        35.747        .52980E-04   -1.4192    
   8  Prefactor     46.687        57.599        .58704E-04   -1.4340    
   9  norm          5.9456        1.7471        .49178E-04   -1.5220    
  10  Prefactor     .10000E-03    2.9626        .11979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.630        39.896        .60718E-04   -1.4386    
  12  norm          5.4683        3.2533        .95548E-04   -1.5240    
  13  Prefactor     7.6450        8.2301        .14503E-03   -1.5155    
  14  Prefactor     .10000E-03    1.8464        .94171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7476        2.5383        .78539E-04   -1.5272    
  16  Prefactor     7.9112        7.5868        .71286E-03   -1.5145    
  17  norm          .57015E-01    .15195        .47306E-03   -1.5660    
  18  norm          18.894        7.5543        .92145E-04   -1.4838    
  19  Prefactor     3.5364        13.129        .21492E-03   -1.5332    
  20  Prefactor     .10000E-03    5.5219        .16479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.4061        .17686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6098        .11296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.0887        .12256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     57.275        30.260        .53010E-04   -1.4193    
  26  norm          4.5059        3.9552        .12989E-03   -1.5283    
  27  Prefactor     .10000E-03    10.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.7798        .93083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.1304        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .82854        .23727        .26645E-03   -.99019    
  31  Prefactor     1.0541        .25940        .28145E-03   -.90947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52403e-09
Minuit parameter uncertainties:
  1  15.5733
  2  0.00313251
  3  6.59902
  4  1.67792
  5  1.6478e-05
  6  2.11936
  7  35.7604
  8  57.6673
  9  1.74712
  10  1.66846e-05
  11  39.92
  12  3.25344
  13  8.23129
  14  8.38058e-07
  15  2.53832
  16  7.58776
  17  0.151955
  18  7.55466
  19  13.1393
  20  9.27527e-06
  21  0.000168407
  22  4.98412e-06
  23  2.76075e-06
  24  2.62223e-06
  25  30.2681
  26  3.95542
  27  2.71608e-05
  28  1.19674e-06
  29  5.23341e-08
  30  0.237564
  31  0.259708
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.468e+00  3.253e+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.054e+00  2.597e-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:  8.285e-01  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.53
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 4.24e-05 +/- 2.52e-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) = 5156.36578178
delta logL = 0.225336967623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5156.36478961
delta logL = 0.226329135638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8649       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1325       1.0000          .0000       5.0000    
     3 'Normalizat'    .81638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0608       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=   5156.365     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      261 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8613        69.934        .45594E-02    .61682E-04
   2  alpha         2.1318        3.4525        .23448        .35637E-04
   3  Normalizat    .81627        .12379        .43824E-01    .17964E-04
   4  Prefactor     1.0611        .12480        .63422E-01    .82892E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.86128
  alpha      = 2.13185
  Normalizat = 0.816267
  Prefactor  = 1.06106
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.365     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8613        3.1845        .85925E-04   -1.5267    
   2  alpha         2.1318        .43006        .94652E-02   -.14780    
   3  Normalizat    .81627        .21593        .26811E-03   -.99468    
   4  Prefactor     1.0611        .25473        .28050E-03   -.90721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34127e-12
Minuit parameter uncertainties:
  1  3.18458
  2  0.432254
  3  0.216155
  4  0.255024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460236': 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) = 5156.36478574
delta logL = 0.226333012031

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  4.861e+00  3.185e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.132e+00  4.323e-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.061e+00  2.550e-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:  8.163e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.96
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.13 +/- 0.43
Photon Flux (Free Index): 6.14e-08 +/- 3.90e-08
Energy Flux (Free Index): 3.06e-05 +/- 2.23e-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/460236/cmap_HighResolution_519523201_519782401_4FGL_J1217.9+3007_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='3.06e-05', photon_flux_error='2.83e-08', dlogl='2.26e-01', energy_flux='4.24e-05', photon_flux2='6.14e-08', job_status='DONE', time_completed='2021-09-05 06:39:02.933210', photon_index_error2='0.43', photon_index2='2.13', ts='8.53', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='0.83', time_epoch_completed='1630849142.93', return_code='0', job_id='460236', GAL2='1.06', EG2='0.82', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='3.90e-08', ts2='8.96', photon_index='1.85' WHERE bin_id='1081' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:39:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 460236: <4FGL_J1217.9+3007_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1081 184.476 30.1177 519523201 519782401 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 :                                   748.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

