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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1311
RA = 184.476, Dec = 30.1177
tmin = 579139201, tmax = 579398401
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='461509', job_status='RUN', time_executed='2021-09-05 06:30:55.750504', time_epoch_executed='1630848655.75' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461509/ft1_4FGL_J1217.9+3007_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461509/ft2_4FGL_J1217.9+3007_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461509/ft1_4FGL_J1217.9+3007_daily_bin1311.fits outfile=/scratch/kocevski/461509/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1311.fits ra=184.476 dec=30.1177 rad=12.0 tmin=579139201.0 tmax=579398401.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.85
user 3.26
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461509/ft1_filtered_4FGL_J1217.9+3007_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/461509/ft2_4FGL_J1217.9+3007_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/461509/ltcube_579139201_579398401_4FGL_J1217.9+3007_daily_bin1311.fits outfile=/scratch/kocevski/461509/expmap_579139201_579398401_4FGL_J1217.9+3007_daily_bin1311.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/461509/ltcube_579139201_579398401_4FGL_J1217.9+3007_daily_bin1311.fits
.....................!
real 191.02
user 185.26
sys 5.04

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/461509/ft1_filtered_4FGL_J1217.9+3007_daily_bin1311.fits scfile=/scratch/kocevski/461509/ft2_4FGL_J1217.9+3007_daily_bin1311.fits outfile=/scratch/kocevski/461509/cmap_579139201_579398401_4FGL_J1217.9+3007_daily_bin1311.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1189       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.544       1.0000         .10000E-03   10000.    
     4 'norm      '    3.4986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.749       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41498       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14107E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53029       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5550       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7038       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8602       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3008       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1608       1.0000         .10000E-03   10000.    
    17 'norm      '    .16336       1.0000         .10000E-03   10000.    
    18 'norm      '    6.5114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4465       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    97.649       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1379       1.0000         .10000E-03   10000.    
    24 'norm      '    .11595       1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.197       1.0000         .10000E-03   10000.    
    26 'norm      '    3.2695       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.1470       1.0000         .10000E-03   10000.    
    28 'norm      '    1.2318       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92023       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0424       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=   6182.356     FROM MIGRAD    STATUS=CONVERGED   1486 CALLS     4865 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1087        12.245        .14071E-03    .11368E-03
   2  Prefactor     .10000E-03    4.7900        .16780E-02** at limit **
   3  Prefactor     10.546        6.0392        .12339E-03   -.49688E-03
   4  norm          3.4987        1.4387        .58166E-04    .13486E-04
   5  Prefactor     17.751        19.237        .95068E-04   -.63999E-03
   6  Prefactor     .41030        2.4683        .16765E-02   -.96934E-03
   7  Prefactor     .10000E-03    127.75        .61508E-02** at limit **
   8  Prefactor     .10000E-03    17.065        .18142E-02** at limit **
   9  norm          .10000E-03    .37394        .92466E-04** at limit **
  10  Prefactor     .52998        2.7999        .25444E-03    .15951E-04
  11  Prefactor     8.5600        25.751        .13705E-03   -.85192E-04
  12  norm          5.7055        3.3650        .96401E-04   -.16947E-03
  13  Prefactor     2.3453        4.2532        .21251E-03    .74468E-04
  14  Prefactor     5.8587        2.9473        .83621E-04   -.82252E-04
  15  Prefactor     2.3008        1.7554        .87070E-04   -.84087E-04
  16  Prefactor     5.1625        5.5466        .17696E-03   -.78376E-04
  17  norm          .16338        .16539        .32544E-03    .12794E-02
  18  norm          6.5101        4.4271        .12649E-03    .63454E-04
  19  Prefactor     9.4500        6.9836        .13039E-03    .81610E-04
  20  Prefactor     .10000E-03    4.1540        .15651E-02** at limit **
  21  Prefactor     97.676        91.045        .40678E-04   -.10637E-03
  22  Prefactor     .10000E-03    4.8190        .16714E-02** at limit **
  23  Prefactor     1.1292        14.452        .41501E-03    .18828E-03
  24  norm          .75899E-01    123.54        .24264E-02    .44109E-04
  25  Prefactor     26.239        34.725        .78268E-04   -.19278E-03
  26  norm          3.2697        3.0845        .13051E-03    .62717E-05
  27  Prefactor     9.1348        30.759        .13252E-03    .89393E-04
  28  norm          1.2377        4.5567        .27716E-03    .21207E-03
  29  norm          .10000E-03    4.1229        .15512E-02** at limit **
  30  Normalizat    .92004        .20553        .24509E-03   -.33414E-03
  31  Prefactor     1.0427        .23034        .27552E-03   -.25352E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10872
  Prefactor  = 0.0001
  Prefactor  = 10.546
  norm       = 3.49872
  Prefactor  = 17.7506
  Prefactor  = 0.410304
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.529976
  Prefactor  = 8.56
  norm       = 5.70549
  Prefactor  = 2.34532
  Prefactor  = 5.8587
  Prefactor  = 2.30078
  Prefactor  = 5.16246
  norm       = 0.163383
  norm       = 6.51012
  Prefactor  = 9.45004
  Prefactor  = 0.0001
  Prefactor  = 97.6763
  Prefactor  = 0.0001
  Prefactor  = 1.12924
  norm       = 0.0758991
  Prefactor  = 26.2388
  norm       = 3.26967
  Prefactor  = 9.13482
  norm       = 1.23768
  norm       = 0.0001
  Normalizat = 0.920035
  Prefactor  = 1.04267
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.356     FROM HESSE     STATUS=OK           596 CALLS     5461 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1087        12.245        .56283E-05   -1.5138    
   2  Prefactor     .10000E-03    4.7904        .33560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.546        6.0365        .49357E-05   -1.5058    
   4  norm          3.4987        1.4386        .23266E-05   -1.5334    
   5  Prefactor     17.751        19.113        .19014E-04   -1.4865    
   6  Prefactor     .41030        2.4226        .67060E-04   -1.5580    
   7  Prefactor     .10000E-03    130.47        .24603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.065        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .37394        .18493E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .52998        2.7989        .10178E-04   -1.5562    
  11  Prefactor     8.5600        25.730        .54820E-05   -1.5123    
  12  norm          5.7055        3.3655        .38560E-05   -1.5230    
  13  Prefactor     2.3453        4.2529        .85005E-05   -1.5402    
  14  Prefactor     5.8587        2.9478        .33449E-05   -1.5224    
  15  Prefactor     2.3008        1.7553        .34828E-05   -1.5405    
  16  Prefactor     5.1625        5.5461        .70786E-05   -1.5254    
  17  norm          .16338        .16531        .13018E-04   -1.5627    
  18  norm          6.5101        4.4269        .50596E-05   -1.5198    
  19  Prefactor     9.4500        6.9834        .52156E-05   -1.5093    
  20  Prefactor     .10000E-03    4.1540        .31302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     97.676        87.206        .81356E-05   -1.3728    
  22  Prefactor     .10000E-03    4.8217        .33428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1292        14.258        .16600E-04   -1.5495    
  24  norm          .75899E-01    101.06        .97054E-04   -1.5653    
  25  Prefactor     26.239        32.629        .15654E-04   -1.4683    
  26  norm          3.2697        3.0844        .52206E-05   -1.5346    
  27  Prefactor     9.1348        30.551        .53007E-05   -1.5103    
  28  norm          1.2377        4.5454        .11086E-04   -1.5485    
  29  norm          .10000E-03    4.1231        .31024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .92004        .20551        .49018E-04   -.95760    
  31  Prefactor     1.0427        .23044        .55105E-04   -.91320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1527e-09
Minuit parameter uncertainties:
  1  12.2489
  2  2.7784e-05
  3  6.03684
  4  1.43863
  5  19.1199
  6  1.99386
  7  0.00124817
  8  3.598e-06
  9  1.72753e-06
  10  2.43582
  11  25.7637
  12  3.36562
  13  4.25342
  14  2.94791
  15  1.75532
  16  5.54663
  17  0.165314
  18  4.42708
  19  6.98404
  20  1.93411e-05
  21  87.3211
  22  3.76232e-05
  23  8.0272
  24  5.54491
  25  32.6515
  26  3.08459
  27  30.6032
  28  4.5467
  29  6.81099e-06
  30  0.205689
  31  0.230655
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.705e+00  3.366e+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.043e+00  2.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  9.200e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.57
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.97e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 2.61e-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) = 6182.3405983
delta logL = 0.0151008806333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6182.33974777
delta logL = 0.015951417291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6209       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9260       1.0000          .0000       5.0000    
     3 'Normalizat'    .91639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0446       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=   6182.340     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      233 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6209        3.0291        .94022E-04    .58777E-03
   2  alpha         1.9258        .40453        .10408E-01    .46610E-04
   3  Normalizat    .91646        .19089        .24548E-03   -.18664E-04
   4  Prefactor     1.0446        .22662        .27526E-03   -.22096E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.62087
  alpha      = 1.92577
  Normalizat = 0.916462
  Prefactor  = 1.04459
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.340     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6209        3.0055        .37609E-05   -1.5234    
   2  alpha         1.9258        .40130        .41633E-03   -.23176    
   3  Normalizat    .91646        .19104        .98192E-05   -.95884    
   4  Prefactor     1.0446        .22682        .11010E-04   -.91258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41723e-11
Minuit parameter uncertainties:
  1  3.00562
  2  0.403147
  3  0.191183
  4  0.227031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461509': 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) = 6182.33974746
delta logL = 0.0159517260417

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.621e+00  3.006e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.926e+00  4.031e-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.045e+00  2.270e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  9.165e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.71
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.93 +/- 0.40
Photon Flux (Free Index): 5.35e-08 +/- 3.49e-08
Energy Flux (Free Index): 4.03e-05 +/- 2.96e-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/461509/cmap_HighResolution_579139201_579398401_4FGL_J1217.9+3007_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.97e-08', energy_flux2='4.03e-05', photon_flux_error='2.93e-08', dlogl='1.60e-02', energy_flux='4.42e-05', photon_flux2='5.35e-08', job_status='DONE', time_completed='2021-09-05 06:45:56.203252', photon_index_error2='0.40', photon_index2='1.93', ts='7.57', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='0.92', time_epoch_completed='1630849556.2', return_code='0', job_id='461509', GAL2='1.04', EG2='0.92', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='3.49e-08', ts2='7.71', photon_index='1.85' WHERE bin_id='1311' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 461509: <4FGL_J1217.9+3007_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1311 184.476 30.1177 579139201 579398401 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 :                                   890.00 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             360.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

