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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1446
RA = 184.476, Dec = 30.1177
tmin = 614131201, tmax = 614390401
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='461760', job_status='RUN', time_executed='2021-09-05 06:31:24.342948', time_epoch_executed='1630848684.34' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461760

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461760/ft1_4FGL_J1217.9+3007_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461760/ft2_4FGL_J1217.9+3007_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461760/ft1_4FGL_J1217.9+3007_daily_bin1446.fits outfile=/scratch/kocevski/461760/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1446.fits ra=184.476 dec=30.1177 rad=12.0 tmin=614131201.0 tmax=614390401.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 4.73
user 4.46
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461760/ft1_filtered_4FGL_J1217.9+3007_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/461760/ft2_4FGL_J1217.9+3007_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/461760/ltcube_614131201_614390401_4FGL_J1217.9+3007_daily_bin1446.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/461760/ft2_4FGL_J1217.9+3007_daily_bin1446.fits
.....................!
real 10.87
user 10.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461760/ft1_filtered_4FGL_J1217.9+3007_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/461760/ft2_4FGL_J1217.9+3007_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/461760/ltcube_614131201_614390401_4FGL_J1217.9+3007_daily_bin1446.fits outfile=/scratch/kocevski/461760/expmap_614131201_614390401_4FGL_J1217.9+3007_daily_bin1446.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/461760/ltcube_614131201_614390401_4FGL_J1217.9+3007_daily_bin1446.fits
.....................!
real 191.71
user 187.01
sys 3.89

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/461760/ft1_filtered_4FGL_J1217.9+3007_daily_bin1446.fits scfile=/scratch/kocevski/461760/ft2_4FGL_J1217.9+3007_daily_bin1446.fits outfile=/scratch/kocevski/461760/cmap_614131201_614390401_4FGL_J1217.9+3007_daily_bin1446.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461760/ft1_filtered_4FGL_J1217.9+3007_daily_bin1446.fits scfile=/scratch/kocevski/461760/ft2_4FGL_J1217.9+3007_daily_bin1446.fits outfile=/scratch/kocevski/461760/cmap_HighResolution_614131201_614390401_4FGL_J1217.9+3007_daily_bin1446.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9033       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13460E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    6.0449       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.185       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38196E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22722E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5846       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6049       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7225       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17678E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .37758       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .58977       1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.867       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.054       1.0000         .10000E-03   10000.    
    24 'norm      '    .13215E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.1788       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.3282       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .91857       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0897       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=   4638.516     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4347 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.205        35.889       -.14852E-05   -.83803E-04
   2  Prefactor     7.8945        23.051        .11369E-05   -.10112E-03
   3  Prefactor     .10021E-03    4.9680        .11912E-05** at limit **
   4  norm          6.0456        2.2147        .12947E-07   -.25525E-03
   5  Prefactor     21.177        31.545       -.36803E-05   -.14413E-03
   6  Prefactor     .23175E-01    1.4278        .55720E-06    .41965E-03
   7  Prefactor     .10000E-03    21.658        .28325E-06** at limit **
   8  Prefactor     .10000E-03    91.787        .20484E-06** at limit **
   9  norm          .10000E-03    .61905        .30845E-06** at limit **
  10  Prefactor     .10000E-03    3.0254        .70585E-06** at limit **
  11  Prefactor     .10000E-03    49.641        .85296E-06** at limit **
  12  norm          3.5844        3.4940        .88373E-07   -.75792E-04
  13  Prefactor     .10000E-03    4.7371        .13846E-06** at limit **
  14  Prefactor     3.6053        2.8196        .39283E-07   -.30728E-05
  15  Prefactor     1.7228        2.0405        .70307E-07   -.23889E-04
  16  Prefactor     .10000E-03    2.5545        .80603E-07** at limit **
  17  norm          .18005E-01    .14163        .11472E-07    .86094E-03
  18  norm          .10000E-03    4.6711        .25593E-06** at limit **
  19  Prefactor     .33326        8.9493       -.15151E-06    .14350E-03
  20  Prefactor     .63105        16.566       -.95073E-06    .18896E-03
  21  Prefactor     54.750        97.717        .13144E-05   -.40821E-04
  22  Prefactor     .10000E-03    2.7394        .42890E-07** at limit **
  23  Prefactor     20.051        10.310        .72423E-07    .11642E-03
  24  norm          .10000E-03    5.3711       -.32215E-05** at limit **
  25  Prefactor     .10000E-03    23.789       -.11503E-05** at limit **
  26  norm          3.1788        3.3842        .44400E-07    .79331E-05
  27  Prefactor     .10000E-03    40.346       -.30224E-06** at limit **
  28  norm          9.3288        5.3342        .90183E-07    .70918E-04
  29  norm          .10000E-03    4.4843       -.32099E-06** at limit **
  30  Normalizat    .91823        .20844       -.94611E-06   -.35803E-03
  31  Prefactor     1.0903        .22395       -.19182E-05   -.28221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2047
  Prefactor  = 7.89445
  Prefactor  = 0.000100212
  norm       = 6.04563
  Prefactor  = 21.177
  Prefactor  = 0.0231751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.58444
  Prefactor  = 0.0001
  Prefactor  = 3.60527
  Prefactor  = 1.7228
  Prefactor  = 0.0001
  norm       = 0.0180048
  norm       = 0.0001
  Prefactor  = 0.333262
  Prefactor  = 0.631047
  Prefactor  = 54.7499
  Prefactor  = 0.0001
  Prefactor  = 20.0514
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17884
  Prefactor  = 0.0001
  norm       = 9.3288
  norm       = 0.0001
  Normalizat = 0.918232
  Prefactor  = 1.09028
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.516     FROM HESSE     STATUS=OK           640 CALLS     4987 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.205        35.191        .87046E-04   -1.4787    
   2  Prefactor     7.8945        22.798        .14263E-03   -1.5146    
   3  Prefactor     .10021E-03    106.11        .27981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.0456        2.2156        .58855E-04   -1.5216    
   5  Prefactor     21.177        34.631        .87022E-04   -1.4787    
   6  Prefactor     .23175E-01    7.6477        .24823E-01   -1.5678    
   7  Prefactor     .10000E-03    21.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    91.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .65467        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.229        .22585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5844        3.4998        .11151E-03   -1.5329    
  13  Prefactor     .10000E-03    4.7523        .14478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6053        2.8309        .90568E-04   -1.5328    
  15  Prefactor     1.7228        2.0202        .10004E-03   -1.5445    
  16  Prefactor     .10000E-03    2.5621        .10629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .18005E-01    .65331        .48367E-03   -1.5681    
  18  norm          .10000E-03    4.8167        .28740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .33326        52.639        .38919E-02   -1.5593    
  20  Prefactor     .63105        101.46        .52724E-02   -1.5549    
  21  Prefactor     54.750        97.431        .27076E-03   -1.4227    
  22  Prefactor     .10000E-03    2.7426        .11009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.051        10.350        .89440E-04   -1.4812    
  24  norm          .10000E-03    5.0994        .14878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.1788        3.3869        .12586E-03   -1.5351    
  27  Prefactor     .10000E-03    40.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.3288        5.3345        .11454E-03   -1.5097    
  29  norm          .10000E-03    4.4899        .14057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .91823        .24575        .25817E-03   -.95822    
  31  Prefactor     1.0903        .26813        .26918E-03   -.89778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18742e-09
Minuit parameter uncertainties:
  1  35.2258
  2  22.8235
  3  0.00951146
  4  2.21568
  5  34.6637
  6  0.840277
  7  5.45554e-06
  8  6.87979e-05
  9  4.77231e-06
  10  0.000111035
  11  0.00019816
  12  3.49998
  13  1.41054e-05
  14  2.83103
  15  2.02031
  16  4.44978e-06
  17  0.216311
  18  1.91975e-05
  19  8.38302
  20  16.0296
  21  97.7161
  22  2.27868e-06
  23  10.3509
  24  5.62661e-05
  25  0.000110973
  26  3.38707
  27  1.17467e-05
  28  5.33482
  29  2.80708e-06
  30  0.246051
  31  0.268465
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  3.584e+00  3.500e+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.090e+00  2.685e-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.182e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 2.71e-05

TS (Fixed Index): 2.60
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 9.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461760/likelihoodResults_614131201_614390401_4FGL_J1217.9+3007_daily_bin1446.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): 0
logL (Free Index) = 4638.33419582
delta logL = 0.181790617306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4638.32302334
delta logL = 0.192963095645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1316       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2928       1.0000          .0000       5.0000    
     3 'Normalizat'    .89659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1042       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=   4638.323     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1286        73.631        .57273E-02    .18015E-03
   2  alpha         2.2933        3.0577        .27534        .28104E-04
   3  Normalizat    .89653        .11221        .44858E-01    .84444E-05
   4  Prefactor     1.1042        .89152E-01    .60520E-01    .47811E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12858
  alpha      = 2.29327
  Normalizat = 0.896532
  Prefactor  = 1.10425
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.323     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1286        3.2935        .94959E-04   -1.5354    
   2  alpha         2.2933        .79730        .13734E-01   -.82788E-01
   3  Normalizat    .89653        .23822        .26091E-03   -.96582    
   4  Prefactor     1.1042        .26592        .26765E-03   -.89331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37039e-09
Minuit parameter uncertainties:
  1  3.29368
  2  0.811576
  3  0.238499
  4  0.266237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461760': 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) = 4638.32302286
delta logL = 0.192963577269

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  3.129e+00  3.294e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.293e+00  8.116e-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.104e+00  2.662e-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.965e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.29 +/- 0.81
Photon Flux (Free Index): 5.05e-08 +/- 5.18e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.89e-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/461760/cmap_HighResolution_614131201_614390401_4FGL_J1217.9+3007_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-05', comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='1.95e-05', photon_flux_error='3.05e-08', dlogl='1.93e-01', energy_flux='2.78e-05', photon_flux2='5.05e-08', job_status='DONE', time_completed='2021-09-05 06:44:38.288816', photon_index_error2='0.81', photon_index2='2.29', ts='2.60', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.91e-08', energy_flux_error2='1.89e-05', EG='0.92', time_epoch_completed='1630849478.29', return_code='0', job_id='461760', GAL2='1.10', EG2='0.90', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='5.18e-08', ts2='3.01', photon_index='1.85' WHERE bin_id='1446' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:44:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 461760: <4FGL_J1217.9+3007_daily_bin1446> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1446 184.476 30.1177 614131201 614390401 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 :                                   782.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

