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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin627
RA = 184.476, Dec = 30.1177
tmin = 401846401, tmax = 402105601
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='456661', job_status='RUN', time_executed='2021-09-05 06:16:11.317842', time_epoch_executed='1630847771.32' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456661

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456661/ft1_4FGL_J1217.9+3007_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456661/ft2_4FGL_J1217.9+3007_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456661/ft1_4FGL_J1217.9+3007_daily_bin627.fits outfile=/scratch/kocevski/456661/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin627.fits ra=184.476 dec=30.1177 rad=12.0 tmin=401846401.0 tmax=402105601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.59
user 3.25
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456661/ft1_filtered_4FGL_J1217.9+3007_daily_bin627.fits" evtable="EVENTS" scfile=/scratch/kocevski/456661/ft2_4FGL_J1217.9+3007_daily_bin627.fits sctable="SC_DATA" outfile=/scratch/kocevski/456661/ltcube_401846401_402105601_4FGL_J1217.9+3007_daily_bin627.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/456661/ft2_4FGL_J1217.9+3007_daily_bin627.fits
.....................!
real 12.41
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456661/ft1_filtered_4FGL_J1217.9+3007_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/456661/ft2_4FGL_J1217.9+3007_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/456661/ltcube_401846401_402105601_4FGL_J1217.9+3007_daily_bin627.fits outfile=/scratch/kocevski/456661/expmap_401846401_402105601_4FGL_J1217.9+3007_daily_bin627.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/456661/ltcube_401846401_402105601_4FGL_J1217.9+3007_daily_bin627.fits
.....................!
real 191.21
user 185.68
sys 4.84

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/456661/ft1_filtered_4FGL_J1217.9+3007_daily_bin627.fits scfile=/scratch/kocevski/456661/ft2_4FGL_J1217.9+3007_daily_bin627.fits outfile=/scratch/kocevski/456661/cmap_401846401_402105601_4FGL_J1217.9+3007_daily_bin627.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.89
user 0.36
sys 0.20

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.9513       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9511       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.315       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .99134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8447       1.0000         .10000E-03   10000.    
    12 'norm      '    5.6984       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4889       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0868       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8850       1.0000         .10000E-03   10000.    
    17 'norm      '    4.8515       1.0000         .10000E-03   10000.    
    18 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4445       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4950       1.0000         .10000E-03   10000.    
    26 'norm      '    19.471       1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.050       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    14.986       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97287       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7337.308     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     3447 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0148       -.11935E-06** at limit **
   2  Prefactor     10.686        1.0089        .41196E-07   -.62962E-03
   3  Prefactor     .10000E-03    2.5215        .43066E-06** at limit **
   4  norm          5.9509        1.7550        .12383E-06    .14900E-03
   5  Prefactor     4.0782        1.0088        .46473E-08   -.42346E-04
   6  Prefactor     2.9508        1.7264        .61327E-07   -.72266E-04
   7  Prefactor     25.313        1.0211       -.76867E-07    .16155E-02
   8  Prefactor     .10325E-03    14.511       -.14987E-05** at limit **
   9  norm          .99105        1.0408       -.26069E-07   -.55747E-04
  10  Prefactor     .10000E-03    .88692       -.11540E-06** at limit **
  11  Prefactor     9.8464        1.0100        .73364E-07   -.66451E-03
  12  norm          5.6986        1.2770        .33809E-06    .30056E-03
  13  Prefactor     .10000E-03    2.8581       -.78065E-06** at limit **
  14  Prefactor     2.4887        2.0823       -.14180E-05   -.76091E-03
  15  Prefactor     4.0863        2.6594        .28649E-05    .27165E-02
  16  Prefactor     7.8846        1.0221        .15298E-06   -.21643E-03
  17  norm          4.8514        .52410        .21841E-09   -.29457E-03
  18  norm          .10001E-03    9.9302        .79371E-06** at limit **
  19  Prefactor     .10000E-03    4.1121        .53790E-06** at limit **
  20  Prefactor     .10004E-03    14.357       -.31869E-05** at limit **
  21  Prefactor     .10479E-03    14.770       -.54182E-05** at limit **
  22  Prefactor     5.4447        1.0050       -.33420E-07    .61439E-04
  23  Prefactor     .10000E-03    1.9092        .11458E-06** at limit **
  24  norm          .10000E-03    1.4061       -.96573E-07** at limit **
  25  Prefactor     2.4965        1.0313       -.98549E-07    .18958E-03
  26  norm          19.471        1.0014       -.20812E-07    .95915E-04
  27  Prefactor     24.047        1.0275       -.86492E-07    .16330E-02
  28  norm          .10000E-03    4.2697        .19266E-06** at limit **
  29  norm          14.985        1.3158       -.11606E-06    .94711E-03
  30  Normalizat    1.0370        .20347       -.15401E-05    .28410E-04
  31  Prefactor     .97268        .23375        .31576E-06    .32624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.6864
  Prefactor  = 0.0001
  norm       = 5.95085
  Prefactor  = 4.0782
  Prefactor  = 2.95084
  Prefactor  = 25.3133
  Prefactor  = 0.000103251
  norm       = 0.991052
  Prefactor  = 0.0001
  Prefactor  = 9.84644
  norm       = 5.6986
  Prefactor  = 0.0001
  Prefactor  = 2.48869
  Prefactor  = 4.08632
  Prefactor  = 7.88459
  norm       = 4.85139
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 0.000104787
  Prefactor  = 5.44466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.49653
  norm       = 19.4711
  Prefactor  = 24.0473
  norm       = 0.000100004
  norm       = 14.9847
  Normalizat = 1.03704
  Prefactor  = 0.972682
 **********
 **   18 **HESSE 
 **********

 FCN=   7337.308     FROM HESSE     STATUS=OK           710 CALLS     4157 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.686        10.813        .30637E-02   -1.5054    
   3  Prefactor     .10000E-03    2.4928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9509        1.7558        .41151E-02   -1.5220    
   5  Prefactor     4.0782        23.633        .49917E-02   -1.5304    
   6  Prefactor     2.9508        1.8026        .59102E-02   -1.5364    
   7  Prefactor     25.313        21.942        .19904E-02   -1.4701    
   8  Prefactor     .10325E-03    40.525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .99105        1.1394        .20063E-01   -1.5509    
  10  Prefactor     .10000E-03    .88395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8464        23.757        .31928E-02   -1.5080    
  12  norm          5.6986        3.1732        .42067E-02   -1.5230    
  13  Prefactor     .10000E-03    2.8329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4887        2.3843        .64775E-02   -1.5392    
  15  Prefactor     4.0863        2.8279        .49857E-02   -1.5304    
  16  Prefactor     7.8846        5.2544        .35699E-02   -1.5146    
  17  norm          4.8514        .52618        .44211E-02   -1.5267    
  18  norm          .10001E-03    2.7076        .45427E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1052        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    10.980        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10479E-03    44.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4447        6.0681        .43052E-02   -1.5241    
  23  Prefactor     .10000E-03    1.9074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.3981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.4965        14.207        .64688E-02   -1.5392    
  26  norm          19.471        6.2960        .22692E-02   -1.4825    
  27  Prefactor     24.047        21.066        .20420E-02   -1.4727    
  28  norm          .10000E-03    2.4541        .62787E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          14.985        8.1048        .25865E-02   -1.4934    
  30  Normalizat    1.0370        .17896        .61373E-01   -.91800    
  31  Prefactor     .97268        .19891        .73879E-01   -.93646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22608e-07
Minuit parameter uncertainties:
  1  5.94591e-06
  2  10.815
  3  2.06034e-05
  4  1.75584
  5  19.6461
  6  1.80266
  7  21.9485
  8  0.0229708
  9  1.1394
  10  7.86679e-07
  11  23.7796
  12  3.17328
  13  3.1799e-05
  14  2.38443
  15  2.82797
  16  5.25475
  17  0.526183
  18  0.000287963
  19  3.5746e-05
  20  0.00129046
  21  0.0293719
  22  6.06874
  23  3.46587e-06
  24  1.1595e-06
  25  11.9151
  26  6.29625
  27  21.0723
  28  0.000190789
  29  8.10541
  30  0.179065
  31  0.199058
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.699e+00  3.173e+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:  9.727e-01  1.991e-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.037e+00  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.34
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 2.46e-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) = 7337.02503782
delta logL = 0.282640912484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7337.02218194
delta logL = 0.285496795309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1423       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1776       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98599       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=   7337.022     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      239 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1423        46.283        .44322E-02    .23454E-02
   2  alpha         2.1776        3.5758        .28167        .17067E-03
   3  Normalizat    1.0151        .11493        .44202E-01    .72077E-03
   4  Prefactor     .98599        .90376E-01    .73399E-01    .54669E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.14233
  alpha      = 2.17765
  Normalizat = 1.01506
  Prefactor  = 0.985988
 **********
 **   18 **HESSE 
 **********

 FCN=   7337.022     FROM HESSE     STATUS=OK            27 CALLS      266 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1423        2.9187        .90210E-04   -1.5254    
   2  alpha         2.1776        .44651        .10415E-01   -.12930    
   3  Normalizat    1.0151        .20179        .27365E-03   -.92527    
   4  Prefactor     .98599        .23419        .32474E-03   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89075e-10
Minuit parameter uncertainties:
  1  2.91879
  2  0.44896
  3  0.201941
  4  0.234434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456661': 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) = 7337.02218193
delta logL = 0.285496801414

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  5.142e+00  2.919e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  2.178e+00  4.490e-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:  9.860e-01  2.344e-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.015e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.94
Ra Dec: 184.476 30.118
Photon Index (Free Index): 2.18 +/- 0.45
Photon Flux (Free Index): 6.95e-08 +/- 4.23e-08
Energy Flux (Free Index): 3.20e-05 +/- 1.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/456661/cmap_HighResolution_401846401_402105601_4FGL_J1217.9+3007_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='3.20e-05', photon_flux_error='2.76e-08', dlogl='2.85e-01', energy_flux='4.42e-05', photon_flux2='6.95e-08', job_status='DONE', time_completed='2021-09-05 06:31:05.666902', photon_index_error2='0.45', photon_index2='2.18', ts='12.34', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.04', time_epoch_completed='1630848665.67', return_code='0', job_id='456661', GAL2='0.99', EG2='1.02', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='4.23e-08', ts2='12.94', photon_index='1.85' WHERE bin_id='627' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:31:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 456661: <4FGL_J1217.9+3007_daily_bin627> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin627 184.476 30.1177 401846401 402105601 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 :                                   882.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

