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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin529
RA = 184.476, Dec = 30.1177
tmin = 376444801, tmax = 376704001
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='456516', job_status='RUN', time_executed='2021-09-05 06:15:53.656095', time_epoch_executed='1630847753.66' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456516/ft1_4FGL_J1217.9+3007_daily_bin529.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456516/ft2_4FGL_J1217.9+3007_daily_bin529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456516/ft1_4FGL_J1217.9+3007_daily_bin529.fits outfile=/scratch/kocevski/456516/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin529.fits ra=184.476 dec=30.1177 rad=12.0 tmin=376444801.0 tmax=376704001.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.55
user 4.23
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456516/ft1_filtered_4FGL_J1217.9+3007_daily_bin529.fits evtable="EVENTS" scfile=/scratch/kocevski/456516/ft2_4FGL_J1217.9+3007_daily_bin529.fits sctable="SC_DATA" expcube=/scratch/kocevski/456516/ltcube_376444801_376704001_4FGL_J1217.9+3007_daily_bin529.fits outfile=/scratch/kocevski/456516/expmap_376444801_376704001_4FGL_J1217.9+3007_daily_bin529.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/456516/ltcube_376444801_376704001_4FGL_J1217.9+3007_daily_bin529.fits
.....................!
real 196.20
user 185.23
sys 4.61

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/456516/ft1_filtered_4FGL_J1217.9+3007_daily_bin529.fits scfile=/scratch/kocevski/456516/ft2_4FGL_J1217.9+3007_daily_bin529.fits outfile=/scratch/kocevski/456516/cmap_376444801_376704001_4FGL_J1217.9+3007_daily_bin529.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.755       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4416       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2946       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6875       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85938       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4368       1.0000         .10000E-03   10000.    
    12 'norm      '    10.378       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4004       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5793       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5184       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3637       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4438       1.0000         .10000E-03   10000.    
    18 'norm      '    .19015       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4582       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3210       1.0000         .10000E-03   10000.    
    24 'norm      '    .12517E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .25851       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    15.870       1.0000         .10000E-03   10000.    
    29 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1695       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82659       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=   6723.821     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4220 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.706        25.460        .21756E-06    .14680E-05
   2  Prefactor     5.4550        17.378        .24637E-06   -.18609E-04
   3  Prefactor     .10000E-03    4.6830        .30885E-06** at limit **
   4  norm          1.2944        1.1398        .41321E-07   -.29029E-04
   5  Prefactor     .10000E-03    5.1215        .17312E-06** at limit **
   6  Prefactor     1.0806        1.1942       -.16583E-08   -.94811E-04
   7  Prefactor     5.6753        28.750        .44363E-05    .87492E-04
   8  Prefactor     .10000E-03    12.056       -.21444E-06** at limit **
   9  norm          .10000E-03    .44603        .99110E-07** at limit **
  10  Prefactor     .85864        3.6031        .20876E-05    .31273E-04
  11  Prefactor     3.3828        81.539       -.35697E-05   -.46318E-04
  12  norm          10.378        3.4031       -.58180E-07   -.96488E-04
  13  Prefactor     8.3985        7.8618        .14711E-06   -.17191E-04
  14  Prefactor     1.5793        1.4218       -.13297E-08   -.14662E-05
  15  Prefactor     1.5185        1.3073        .11487E-07    .29906E-04
  16  Prefactor     6.3681        6.7757        .10643E-06    .11082E-03
  17  norm          1.4436        .35011        .42215E-10   -.13807E-03
  18  norm          .17931        2.4030       -.69061E-06    .66747E-03
  19  Prefactor     .10000E-03    17.621        .29049E-06** at limit **
  20  Prefactor     .10000E-03    5.3962       -.25593E-06** at limit **
  21  Prefactor     .10000E-03    32.486       -.10848E-06** at limit **
  22  Prefactor     2.4594        6.8482        .16060E-06   -.11543E-03
  23  Prefactor     4.3201        4.9215        .13365E-06   -.11682E-04
  24  norm          .10000E-03    1.8980        .70758E-07** at limit **
  25  Prefactor     .10000E-03    11.978        .17463E-06** at limit **
  26  norm          .24329        2.3423        .63466E-06   -.48004E-03
  27  Prefactor     .10000E-03    38.675       -.69114E-08** at limit **
  28  norm          15.868        5.2355        .35318E-07   -.84869E-04
  29  norm          .10000E-03    5.7011        .12529E-06** at limit **
  30  Normalizat    1.1699        .18175       -.10186E-05   -.12723E-03
  31  Prefactor     .82637        .19496       -.40472E-07   -.14193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7055
  Prefactor  = 5.455
  Prefactor  = 0.0001
  norm       = 1.29442
  Prefactor  = 0.0001
  Prefactor  = 1.08065
  Prefactor  = 5.67531
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.858643
  Prefactor  = 3.38279
  norm       = 10.3777
  Prefactor  = 8.39851
  Prefactor  = 1.57928
  Prefactor  = 1.51847
  Prefactor  = 6.36815
  norm       = 1.44358
  norm       = 0.179311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.4594
  Prefactor  = 4.32008
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.243288
  Prefactor  = 0.0001
  norm       = 15.8682
  norm       = 0.0001
  Normalizat = 1.16986
  Prefactor  = 0.826371
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.821     FROM HESSE     STATUS=OK           636 CALLS     4856 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.706        24.994        .10090E-03   -1.4915    
   2  Prefactor     5.4550        17.083        .17226E-03   -1.5241    
   3  Prefactor     .10000E-03    4.8190        .34608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2944        1.1404        .38886E-04   -1.5480    
   5  Prefactor     .10000E-03    5.1307        .18126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0806        1.1942        .46337E-04   -1.5500    
   7  Prefactor     5.6753        31.193        .16843E-03   -1.5231    
   8  Prefactor     .10000E-03    12.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .68512        .10522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .85864        3.8738        .30059E-03   -1.5523    
  11  Prefactor     3.3828        88.349        .21818E-03   -1.5340    
  12  norm          10.378        3.3983        .41100E-03   -1.5064    
  13  Prefactor     8.3985        7.8530        .13831E-03   -1.5128    
  14  Prefactor     1.5793        1.4341        .89050E-04   -1.5457    
  15  Prefactor     1.5185        1.3110        .84044E-04   -1.5462    
  16  Prefactor     6.3681        6.9126        .15911E-03   -1.5203    
  17  norm          1.4436        .35058        .22324E-04   -1.5468    
  18  norm          .17931        13.246        .21997E-02   -1.5623    
  19  Prefactor     .10000E-03    18.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4594        6.8866        .26086E-03   -1.5394    
  23  Prefactor     4.3201        4.9139        .18806E-03   -1.5292    
  24  norm          .10000E-03    4.0300        .21916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .24329        11.623        .23030E-02   -1.5609    
  27  Prefactor     .10000E-03    39.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          15.868        5.2146        .10054E-03   -1.4911    
  29  norm          .10000E-03    5.7132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1699        .22000        .23598E-03   -.87539    
  31  Prefactor     .82637        .23573        .31234E-03   -.98763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95327e-09
Minuit parameter uncertainties:
  1  25.0108
  2  17.0988
  3  8.29385e-07
  4  1.14037
  5  1.04499e-05
  6  1.19422
  7  26.6315
  8  1.98425e-05
  9  5.62193e-08
  10  3.64778
  11  34.6319
  12  3.39837
  13  7.85397
  14  1.43415
  15  1.31107
  16  6.9135
  17  0.350578
  18  3.08218
  19  6.62516e-05
  20  1.52233e-05
  21  8.48075e-06
  22  6.88886
  23  4.91437
  24  1.15727e-05
  25  2.06401e-05
  26  3.36319
  27  2.21982e-05
  28  5.21472
  29  9.00306e-06
  30  0.220172
  31  0.236018
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.038e+01  3.398e+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:  8.264e-01  2.360e-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.170e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.74
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 9.04e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 8.05e-05 +/- 2.64e-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) = 6723.81754672
delta logL = 0.00381239070794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6723.81733233
delta logL = 0.00402678003502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.423       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8302       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82492       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=   6723.817     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.423        4.5226        .31027E-02   -.21283E-02
   2  alpha         1.8302        .33529        .19468        .10236E-04
   3  Normalizat    1.1723        .17164        .53324E-01    .74932E-05
   4  Prefactor     .82485        .19313        .70650E-01    .20842E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4229
  alpha      = 1.8302
  Normalizat = 1.1723
  Prefactor  = 0.824845
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.817     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.423        3.3970        .82648E-04   -1.5062    
   2  alpha         1.8302        .26613        .81087E-02   -.27123    
   3  Normalizat    1.1723        .20477        .23577E-03   -.87463    
   4  Prefactor     .82485        .23111        .31261E-03   -.98819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40214e-10
Minuit parameter uncertainties:
  1  3.39703
  2  0.266676
  3  0.204908
  4  0.231383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456516': 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) = 6723.81733223
delta logL = 0.00402687880978

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.042e+01  3.397e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.830e+00  2.667e-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:  8.248e-01  2.314e-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.172e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.87
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.83 +/- 0.27
Photon Flux (Free Index): 8.82e-08 +/- 3.68e-08
Energy Flux (Free Index): 8.33e-05 +/- 4.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/456516/cmap_HighResolution_376444801_376704001_4FGL_J1217.9+3007_daily_bin529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.04e-08', energy_flux2='8.33e-05', photon_flux_error='2.96e-08', dlogl='4.03e-03', energy_flux='8.05e-05', photon_flux2='8.82e-08', job_status='DONE', time_completed='2021-09-05 06:30:40.903113', photon_index_error2='0.27', photon_index2='1.83', ts='36.74', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='4.26e-05', EG='1.17', time_epoch_completed='1630848640.9', return_code='0', job_id='456516', GAL2='0.82', EG2='1.17', return_code2='0', energy_flux_error='2.64e-05', photon_flux_error2='3.68e-08', ts2='36.87', photon_index='1.85' WHERE bin_id='529' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:30:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 456516: <4FGL_J1217.9+3007_daily_bin529> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin529 184.476 30.1177 376444801 376704001 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 :                                   875.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

