/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 142 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 = 7439
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin57
RA = 184.476, Dec = 30.1177
tmin = 254102401, tmax = 254361601
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='453014', job_status='RUN', time_executed='2021-09-05 06:08:24.795884', time_epoch_executed='1630847304.8' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453014/ft1_4FGL_J1217.9+3007_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453014/ft2_4FGL_J1217.9+3007_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453014/ft1_4FGL_J1217.9+3007_daily_bin57.fits outfile=/scratch/kocevski/453014/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin57.fits ra=184.476 dec=30.1177 rad=12.0 tmin=254102401.0 tmax=254361601.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.09
user 1.85
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453014/ft2_4FGL_J1217.9+3007_daily_bin57.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/453014/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin57.fits evtable="EVENTS" outfile="/scratch/kocevski/453014/ft1_filtered_4FGL_J1217.9+3007_daily_bin57.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453014/ft1_filtered_4FGL_J1217.9+3007_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/453014/ft2_4FGL_J1217.9+3007_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/453014/ltcube_254102401_254361601_4FGL_J1217.9+3007_daily_bin57.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/453014/ft2_4FGL_J1217.9+3007_daily_bin57.fits
.....................!
real 12.35
user 12.00
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453014/ft1_filtered_4FGL_J1217.9+3007_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/453014/ft2_4FGL_J1217.9+3007_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/453014/ltcube_254102401_254361601_4FGL_J1217.9+3007_daily_bin57.fits outfile=/scratch/kocevski/453014/expmap_254102401_254361601_4FGL_J1217.9+3007_daily_bin57.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/453014/ltcube_254102401_254361601_4FGL_J1217.9+3007_daily_bin57.fits
.....................!
real 190.65
user 186.24
sys 4.02

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/453014/ft1_filtered_4FGL_J1217.9+3007_daily_bin57.fits scfile=/scratch/kocevski/453014/ft2_4FGL_J1217.9+3007_daily_bin57.fits outfile=/scratch/kocevski/453014/cmap_254102401_254361601_4FGL_J1217.9+3007_daily_bin57.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.56
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.054       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7066       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2043       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    79.486       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12442E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.5037       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14213E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0895       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2725       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8627       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .86356E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.838       1.0000         .10000E-03   10000.    
    26 'norm      '    .79459       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.0455       1.0000         .10000E-03   10000.    
    29 'norm      '    7.1635       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1330       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0113       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=   4657.847     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4157 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.082        28.353       -.24256E-05   -.94891E-04
   2  Prefactor     6.7067        17.259        .19554E-05    .19703E-04
   3  Prefactor     4.2043        4.7776       -.31645E-06    .21591E-03
   4  norm          .10000E-03    .77789        .19057E-06** at limit **
   5  Prefactor     79.443        33.333       -.11582E-05   -.20665E-03
   6  Prefactor     .10000E-03    2.9258       -.19771E-05** at limit **
   7  Prefactor     .10000E-03    25.783        .30622E-05** at limit **
   8  Prefactor     .10000E-03    31.893       -.10579E-05** at limit **
   9  norm          3.5035        1.7377       -.20407E-07   -.21605E-03
  10  Prefactor     .10000E-03    2.4054        .17012E-07** at limit **
  11  Prefactor     .10000E-03    52.688        .11850E-05** at limit **
  12  norm          2.8301        3.2034        .20826E-06   -.23957E-04
  13  Prefactor     .10000E-03    3.3502       -.20232E-06** at limit **
  14  Prefactor     1.0918        2.6961       -.61058E-06   -.51906E-03
  15  Prefactor     7.2728        3.3226        .10971E-06    .10323E-03
  16  Prefactor     .10000E-03    3.1512        .15002E-06** at limit **
  17  norm          .10000E-03    .78946E-01    .30759E-07** at limit **
  18  norm          2.8629        3.7135        .24678E-07    .11683E-04
  19  Prefactor     .10000E-03    5.4109       -.50789E-08** at limit **
  20  Prefactor     .10000E-03    7.1001        .10568E-06** at limit **
  21  Prefactor     .10000E-03    35.676       -.28192E-05** at limit **
  22  Prefactor     .10000E-03    3.9570        .71337E-07** at limit **
  23  Prefactor     .10004E-03    10.966        .52422E-05** at limit **
  24  norm          .10000E-03    2.0905        .34482E-07** at limit **
  25  Prefactor     15.857        25.949       -.13979E-05   -.63998E-04
  26  norm          .79471        4.3404       -.15415E-06    .14272E-03
  27  Prefactor     .10000E-03    17.607        .25622E-06** at limit **
  28  norm          9.0460        7.4323        .23166E-06   -.26131E-04
  29  norm          7.1619        10.911       -.10538E-06    .24715E-04
  30  Normalizat    1.1326        .21122        .75952E-07   -.22003E-03
  31  Prefactor     1.0116        .23509       -.12663E-05   -.28974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0815
  Prefactor  = 6.70673
  Prefactor  = 4.20427
  norm       = 0.0001
  Prefactor  = 79.4429
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.50349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83011
  Prefactor  = 0.0001
  Prefactor  = 1.09183
  Prefactor  = 7.27284
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.86288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  norm       = 0.0001
  Prefactor  = 15.8566
  norm       = 0.794714
  Prefactor  = 0.0001
  norm       = 9.04602
  norm       = 7.16186
  Normalizat = 1.13259
  Prefactor  = 1.01165
 **********
 **   18 **HESSE 
 **********

 FCN=   4657.847     FROM HESSE     STATUS=OK           624 CALLS     4781 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.082        28.373        .83423E-04   -1.4747    
   2  Prefactor     6.7067        17.213        .15494E-03   -1.5190    
   3  Prefactor     4.2043        4.7719        .76796E-03   -1.5298    
   4  norm          .10000E-03    1.3053        .11700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     79.443        33.341        .45046E-04   -1.3923    
   6  Prefactor     .10000E-03    3.5487        .17983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5035        1.7352        .60133E-04   -1.5334    
  10  Prefactor     .10000E-03    2.4366        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    53.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8301        3.1355        .11231E-03   -1.5371    
  13  Prefactor     .10000E-03    3.3529        .12194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0918        2.3081        .15310E-02   -1.5499    
  15  Prefactor     7.2728        3.3094        .78870E-04   -1.5169    
  16  Prefactor     .10000E-03    3.1639        .11830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .91921E-01    .37327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8629        3.6984        .14491E-03   -1.5370    
  19  Prefactor     .10000E-03    5.4265        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1022        .17762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9811        .13259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    19.398        .29333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.0939        .96248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.857        25.965        .10064E-03   -1.4911    
  26  norm          .79471        4.3685        .27374E-03   -1.5530    
  27  Prefactor     .10000E-03    17.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.0460        7.5432        .12710E-03   -1.5106    
  29  norm          7.1619        11.068        .14987E-03   -1.5173    
  30  Normalizat    1.1326        .25198        .24204E-03   -.88712    
  31  Prefactor     1.0116        .28097        .29515E-03   -.92342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7313e-09
Minuit parameter uncertainties:
  1  28.3893
  2  17.2257
  3  4.77234
  4  9.34266e-06
  5  33.3485
  6  0.00015122
  7  0.000180283
  8  3.56977e-05
  9  1.73525
  10  4.0575e-06
  11  0.000189034
  12  3.13571
  13  2.72843e-06
  14  2.30832
  15  3.30948
  16  5.84027e-06
  17  7.05121e-07
  18  3.69871
  19  8.77052e-06
  20  7.34728e-07
  21  0.000100063
  22  6.96274e-06
  23  0.00166059
  24  1.53307e-05
  25  25.9833
  26  3.72668
  27  4.35106e-07
  28  7.54403
  29  11.0709
  30  0.252244
  31  0.281381
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  2.830e+00  3.136e+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.012e+00  2.814e-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.133e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.46e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 2.43e-05

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

Saving results to:
/scratch/kocevski/453014/likelihoodResults_254102401_254361601_4FGL_J1217.9+3007_daily_bin57.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) = 4657.83691783
delta logL = 0.0102416696564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4657.83667874
delta logL = 0.0104807578964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8482       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9607       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0133       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=   4657.837     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      222 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8546        101.76        .60230E-02    .16460E-03
   2  alpha         1.9628        2.5945        .42432        .25400E-04
   3  Normalizat    1.1291        .12104        .54805E-01   -.62863E-04
   4  Prefactor     1.0133        .95766E-01    .66672E-01   -.85120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85458
  alpha      = 1.96283
  Normalizat = 1.12911
  Prefactor  = 1.01326
 **********
 **   18 **HESSE 
 **********

 FCN=   4657.837     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8546        2.8222        .11039E-03   -1.5370    
   2  alpha         1.9628        .74353        .15119E-01   -.21656    
   3  Normalizat    1.1291        .24006        .24234E-03   -.88823    
   4  Prefactor     1.0133        .27795        .29491E-03   -.92289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.63358e-11
Minuit parameter uncertainties:
  1  2.82237
  2  0.755527
  3  0.240295
  4  0.278345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453014': 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) = 4657.83667195
delta logL = 0.0104875528605

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  2.855e+00  2.822e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.963e+00  7.555e-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.013e+00  2.783e-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.129e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.96 +/- 0.76
Photon Flux (Free Index): 2.85e-08 +/- 3.85e-08
Energy Flux (Free Index): 1.98e-05 +/- 2.41e-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/453014/cmap_HighResolution_254102401_254361601_4FGL_J1217.9+3007_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-05', comment='SUCCESS', photon_flux='2.46e-08', energy_flux2='1.98e-05', photon_flux_error='2.73e-08', dlogl='1.05e-02', energy_flux='2.19e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-09-05 06:21:36.060292', photon_index_error2='0.76', photon_index2='1.96', ts='2.04', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.11e-08', energy_flux_error2='2.41e-05', EG='1.13', time_epoch_completed='1630848096.06', return_code='0', job_id='453014', GAL2='1.01', EG2='1.13', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='3.85e-08', ts2='2.07', photon_index='1.85' WHERE bin_id='57' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:21:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 453014: <4FGL_J1217.9+3007_daily_bin57> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin57 184.476 30.1177 254102401 254361601 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 :                                   789.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            952 sec.

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

