/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 0 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_bin1036
RA = 184.476, Dec = 30.1177
tmin = 507859201, tmax = 508118401
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='460166', job_status='RUN', time_executed='2021-09-05 06:25:52.751159', time_epoch_executed='1630848352.75' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460166/ft1_4FGL_J1217.9+3007_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460166/ft2_4FGL_J1217.9+3007_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460166/ft1_4FGL_J1217.9+3007_daily_bin1036.fits outfile=/scratch/kocevski/460166/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1036.fits ra=184.476 dec=30.1177 rad=12.0 tmin=507859201.0 tmax=508118401.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.35
user 3.91
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460166/ft1_filtered_4FGL_J1217.9+3007_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/460166/ft2_4FGL_J1217.9+3007_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/460166/ltcube_507859201_508118401_4FGL_J1217.9+3007_daily_bin1036.fits outfile=/scratch/kocevski/460166/expmap_507859201_508118401_4FGL_J1217.9+3007_daily_bin1036.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/460166/ltcube_507859201_508118401_4FGL_J1217.9+3007_daily_bin1036.fits
.....................!
real 191.69
user 186.64
sys 4.68

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/460166/ft1_filtered_4FGL_J1217.9+3007_daily_bin1036.fits scfile=/scratch/kocevski/460166/ft2_4FGL_J1217.9+3007_daily_bin1036.fits outfile=/scratch/kocevski/460166/cmap_507859201_508118401_4FGL_J1217.9+3007_daily_bin1036.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=184.476 yref=30.1177 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460166/ft1_filtered_4FGL_J1217.9+3007_daily_bin1036.fits scfile=/scratch/kocevski/460166/ft2_4FGL_J1217.9+3007_daily_bin1036.fits outfile=/scratch/kocevski/460166/cmap_HighResolution_507859201_508118401_4FGL_J1217.9+3007_daily_bin1036.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.62
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1669       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9331       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5883       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3683       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31077E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    5.9390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2973       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.079       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45274       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3037       1.0000         .10000E-03   10000.    
    17 'norm      '    .11865       1.0000         .10000E-03   10000.    
    18 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.780       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3620       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .29386E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .77546       1.0000         .10000E-03   10000.    
    29 'norm      '    4.1495       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2662       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .71275       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=   5953.672     FROM MIGRAD    STATUS=CONVERGED   1452 CALLS     5388 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1546        52.977        .42546E-03    .45372E-04
   2  Prefactor     .10000E-03    9.1644        .18142E-02** at limit **
   3  Prefactor     2.9328        3.6109        .15752E-03    .51566E-03
   4  norm          2.5877        1.3775        .62438E-04   -.49708E-03
   5  Prefactor     .10000E-03    5.3386        .17398E-02** at limit **
   6  Prefactor     2.3679        2.0978        .10069E-03    .17139E-03
   7  Prefactor     .10000E-03    22.431        .18142E-02** at limit **
   8  Prefactor     .10004E-03    42.703        .15416    ** at limit **
   9  norm          5.9390        1.5774        .47999E-04    .96370E-03
  10  Prefactor     4.2977        3.6403        .13108E-03    .82396E-05
  11  Prefactor     .10000E-03    30.145        .18142E-02** at limit **
  12  norm          16.079        4.4956        .78399E-04    .45336E-03
  13  Prefactor     .10000E-03    4.4712        .15833E-02** at limit **
  14  Prefactor     .45241        1.6678        .16185E-02   -.77989E-03
  15  Prefactor     .10000E-03    .71648        .63439E-03** at limit **
  16  Prefactor     5.3062        5.5244        .17452E-03    .69572E-04
  17  norm          .11844        .17195        .41408E-03    .23230E-02
  18  norm          .10000E-03    2.1215        .10926E-02** at limit **
  19  Prefactor     13.784        11.475        .10790E-03    .99041E-04
  20  Prefactor     3.3619        10.362        .22070E-03    .12316E-03
  21  Prefactor     .10000E-03    19.140        .18142E-02** at limit **
  22  Prefactor     .10000E-03    3.7932        .14648E-02** at limit **
  23  Prefactor     .10000E-03    2.3982        .11647E-02** at limit **
  24  norm          .10000E-03    18.359        .20089E-02** at limit **
  25  Prefactor     .10000E-03    18.469        .18142E-02** at limit **
  26  norm          .10000E-03    1.1837        .81818E-03** at limit **
  27  Prefactor     .10000E-03    21.262        .18142E-02** at limit **
  28  norm          .77470        9.0018        .22716E-03    .17291E-03
  29  norm          4.1501        9.6020        .17699E-03    .18056E-03
  30  Normalizat    1.2663        .21068        .22138E-03    .42925E-03
  31  Prefactor     .71271        .23707        .32709E-03    .53803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1546
  Prefactor  = 0.000100001
  Prefactor  = 2.9328
  norm       = 2.58774
  Prefactor  = 0.0001
  Prefactor  = 2.36791
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  norm       = 5.939
  Prefactor  = 4.29772
  Prefactor  = 0.000100001
  norm       = 16.079
  Prefactor  = 0.0001
  Prefactor  = 0.452409
  Prefactor  = 0.0001
  Prefactor  = 5.3062
  norm       = 0.118443
  norm       = 0.0001
  Prefactor  = 13.7838
  Prefactor  = 3.3619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.774698
  norm       = 4.15013
  Normalizat = 1.2663
  Prefactor  = 0.71271
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.672     FROM HESSE     STATUS=OK           604 CALLS     5992 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1546        52.924        .17018E-04   -1.5493    
   2  Prefactor     .10000E-03    9.1658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9328        3.6107        .63009E-05   -1.5365    
   4  norm          2.5877        1.3775        .24975E-05   -1.5386    
   5  Prefactor     .10000E-03    5.3388        .34796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3679        2.0977        .40277E-05   -1.5400    
   7  Prefactor     .10000E-03    22.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10004E-03    42.583        .15452       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9390        1.5774        .95999E-05   -1.5221    
  10  Prefactor     4.2977        3.6402        .52431E-05   -1.5293    
  11  Prefactor     .10000E-03    30.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.079        4.4802        .15680E-04   -1.4906    
  13  Prefactor     .10000E-03    4.4729        .31665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .45241        1.6601        .64739E-04   -1.5573    
  15  Prefactor     .10000E-03    .71651        .12688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.3062        5.5237        .69808E-05   -1.5247    
  17  norm          .11844        .17180        .16563E-04   -1.5639    
  18  norm          .10000E-03    2.1217        .21852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.784        11.474        .43160E-05   -1.4965    
  20  Prefactor     3.3619        10.362        .88281E-05   -1.5341    
  21  Prefactor     .10000E-03    19.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7936        .29296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.3983        .23294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    18.936        .80358E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.1837        .16364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    21.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .77470        9.0341        .90864E-05   -1.5532    
  29  norm          4.1501        9.6197        .70794E-05   -1.5301    
  30  Normalizat    1.2663        .21080        .44276E-04   -.84578    
  31  Prefactor     .71271        .23728        .13084E-04   -1.0303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11903e-09
Minuit parameter uncertainties:
  1  15.6482
  2  0.000191566
  3  3.61101
  4  1.37754
  5  1.81535e-05
  6  2.09774
  7  2.3313e-05
  8  0.00268553
  9  1.57741
  10  3.64034
  11  0.000379515
  12  4.4803
  13  4.13913e-05
  14  1.6603
  15  2.0275e-05
  16  5.52419
  17  0.171803
  18  2.33031e-05
  19  11.4759
  20  10.3677
  21  2.87397e-05
  22  2.29728e-05
  23  6.14567e-07
  24  0.000524857
  25  0.000184427
  26  4.90776e-06
  27  1.76264e-05
  28  5.29166
  29  9.6233
  30  0.210939
  31  0.237615
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.608e+01  4.480e+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:  7.127e-01  2.376e-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.266e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.52
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 3.90e-08
Energy Flux (Fixed Index): 1.25e-04 +/- 3.47e-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) = 5953.65091527
delta logL = 0.0207966852086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5953.6499023
delta logL = 0.0218096549961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.255       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8108       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70986       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=   5953.650     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.255        5.1936        .24835E-02    .10502E-02
   2  alpha         1.8108        .23962        .14243       -.28502E-03
   3  Normalizat    1.2714        .17525        .50002E-01    .33365E-03
   4  Prefactor     .70984        .19964        .74047E-01    .17417E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2553
  alpha      = 1.8108
  Normalizat = 1.27138
  Prefactor  = 0.709844
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.650     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.255        4.3570        .79468E-04   -1.4901    
   2  alpha         1.8108        .20725        .61043E-02   -.27930    
   3  Normalizat    1.2714        .20699        .22106E-03   -.84425    
   4  Prefactor     .70984        .23538        .32776E-03   -1.0314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09693e-09
Minuit parameter uncertainties:
  1  4.35704
  2  0.207507
  3  0.207123
  4  0.235715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460166': 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) = 5953.64990229
delta logL = 0.0218096654025

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.626e+01  4.357e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.811e+00  2.075e-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:  7.098e-01  2.357e-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.271e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 50.65
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.81 +/- 0.21
Photon Flux (Free Index): 1.35e-07 +/- 4.39e-08
Energy Flux (Free Index): 1.33e-04 +/- 5.65e-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/460166/cmap_HighResolution_507859201_508118401_4FGL_J1217.9+3007_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='1.33e-04', photon_flux_error='3.90e-08', dlogl='2.18e-02', energy_flux='1.25e-04', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-05 06:41:14.215671', photon_index_error2='0.21', photon_index2='1.81', ts='50.52', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='5.65e-05', EG='1.27', time_epoch_completed='1630849274.22', return_code='0', job_id='460166', GAL2='0.71', EG2='1.27', return_code2='0', energy_flux_error='3.47e-05', photon_flux_error2='4.39e-08', ts2='50.65', photon_index='1.85' WHERE bin_id='1036' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:41:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 460166: <4FGL_J1217.9+3007_daily_bin1036> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1036 184.476 30.1177 507859201 508118401 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 :                                   909.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

