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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin944
RA = 184.476, Dec = 30.1177
tmin = 484012801, tmax = 484272001
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='460028', job_status='RUN', time_executed='2021-09-05 06:25:46.897775', time_epoch_executed='1630848346.9' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460028/ft1_4FGL_J1217.9+3007_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460028/ft2_4FGL_J1217.9+3007_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460028/ft1_4FGL_J1217.9+3007_daily_bin944.fits outfile=/scratch/kocevski/460028/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin944.fits ra=184.476 dec=30.1177 rad=12.0 tmin=484012801.0 tmax=484272001.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.39
user 3.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460028/ft1_filtered_4FGL_J1217.9+3007_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/460028/ft2_4FGL_J1217.9+3007_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/460028/ltcube_484012801_484272001_4FGL_J1217.9+3007_daily_bin944.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/460028/ft2_4FGL_J1217.9+3007_daily_bin944.fits
.....................!
real 12.02
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460028/ft1_filtered_4FGL_J1217.9+3007_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/460028/ft2_4FGL_J1217.9+3007_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/460028/ltcube_484012801_484272001_4FGL_J1217.9+3007_daily_bin944.fits outfile=/scratch/kocevski/460028/expmap_484012801_484272001_4FGL_J1217.9+3007_daily_bin944.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/460028/ltcube_484012801_484272001_4FGL_J1217.9+3007_daily_bin944.fits
.....................!
real 192.29
user 186.21
sys 5.32

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/460028/ft1_filtered_4FGL_J1217.9+3007_daily_bin944.fits scfile=/scratch/kocevski/460028/ft2_4FGL_J1217.9+3007_daily_bin944.fits outfile=/scratch/kocevski/460028/cmap_484012801_484272001_4FGL_J1217.9+3007_daily_bin944.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.60
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460028/ft1_filtered_4FGL_J1217.9+3007_daily_bin944.fits scfile=/scratch/kocevski/460028/ft2_4FGL_J1217.9+3007_daily_bin944.fits outfile=/scratch/kocevski/460028/cmap_HighResolution_484012801_484272001_4FGL_J1217.9+3007_daily_bin944.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.387       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0881       1.0000         .10000E-03   10000.    
     4 'norm      '    .35214       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6544       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.8609       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1196       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .63463       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5057       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4023       1.0000         .10000E-03   10000.    
    17 'norm      '    .27554       1.0000         .10000E-03   10000.    
    18 'norm      '    .11911E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    110.13       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    19.813       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11949       1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.735       1.0000         .10000E-03   10000.    
    28 'norm      '    5.2075       1.0000         .10000E-03   10000.    
    29 'norm      '    .25380E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3621       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .40723       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=   5981.157     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4175 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7114        .44548E-06** at limit **
   2  Prefactor     14.387        10.987        .72626E-07   -.10359E-04
   3  Prefactor     2.0880        2.8608        .14737E-06   -.12355E-04
   4  norm          .35164        .65352        .26432E-06    .12275E-02
   5  Prefactor     .10000E-03    23.608       -.64329E-06** at limit **
   6  Prefactor     1.6549        1.5042        .19948E-07   -.28117E-05
   7  Prefactor     .10000E-03    11.210        .20156E-06** at limit **
   8  Prefactor     .10001E-03    31.006        .14490E-05** at limit **
   9  norm          7.8613        1.7868       -.11789E-07   -.11864E-03
  10  Prefactor     4.1195        4.2035        .14956E-06   -.25156E-04
  11  Prefactor     .10000E-03    42.411       -.91776E-06** at limit **
  12  norm          11.202        3.7538       -.12634E-06   -.90184E-04
  13  Prefactor     .10000E-03    2.4823        .80591E-08** at limit **
  14  Prefactor     .63438        1.6331        .73154E-06    .40799E-03
  15  Prefactor     1.5057        1.5523       -.19297E-07   -.65575E-04
  16  Prefactor     3.4032        3.3882       -.86023E-06    .23750E-03
  17  norm          .27554        .19787        .22254E-07    .50833E-03
  18  norm          .10001E-03    3.1506       -.11496E-05** at limit **
  19  Prefactor     .10000E-03    3.0527        .59122E-08** at limit **
  20  Prefactor     .10000E-03    13.698       -.65873E-07** at limit **
  21  Prefactor     110.13        69.568       -.15373E-06   -.35746E-04
  22  Prefactor     .10000E-03    4.4900        .13884E-07** at limit **
  23  Prefactor     .10000E-03    2.9056       -.15088E-06** at limit **
  24  norm          19.813        6.6200        .28727E-07    .28793E-05
  25  Prefactor     .10000E-03    13.955       -.17198E-06** at limit **
  26  norm          .11422        1.9372        .81743E-07   -.87622E-04
  27  Prefactor     25.725        22.191       -.37172E-06   -.22338E-03
  28  norm          5.2137        3.6796        .23522E-07   -.65326E-04
  29  norm          .10000E-03    6.2100        .10411E-06** at limit **
  30  Normalizat    1.3618        .18093       -.18303E-06    .37526E-04
  31  Prefactor     .40771        .19953       -.28543E-06    .20679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.3872
  Prefactor  = 2.088
  norm       = 0.351638
  Prefactor  = 0.000100001
  Prefactor  = 1.65487
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 7.86134
  Prefactor  = 4.1195
  Prefactor  = 0.000100002
  norm       = 11.2016
  Prefactor  = 0.0001
  Prefactor  = 0.634382
  Prefactor  = 1.50574
  Prefactor  = 3.40324
  norm       = 0.275544
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.13
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.8131
  Prefactor  = 0.0001
  norm       = 0.114224
  Prefactor  = 25.7252
  norm       = 5.21374
  norm       = 0.0001
  Normalizat = 1.36176
  Prefactor  = 0.407711
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.157     FROM HESSE     STATUS=OK           632 CALLS     4807 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.387        10.993        .10560E-03   -1.4949    
   3  Prefactor     2.0880        2.8428        .14853E-03   -1.5419    
   4  norm          .35164        .54752        .88338E-03   -1.5589    
   5  Prefactor     .10000E-03    24.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6549        1.4948        .87144E-04   -1.5451    
   7  Prefactor     .10000E-03    11.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    31.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.8613        1.7908        .46993E-04   -1.5147    
  10  Prefactor     4.1195        4.1979        .15309E-03   -1.5302    
  11  Prefactor     .10000E-03    43.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.202        3.7277        .79996E-04   -1.5038    
  13  Prefactor     .10000E-03    2.4890        .11899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .63438        1.5436        .15308E-02   -1.5549    
  15  Prefactor     1.5057        1.5333        .93487E-04   -1.5463    
  16  Prefactor     3.4032        3.3256        .67720E-03   -1.5339    
  17  norm          .27554        .19123        .27926E-03   -1.5603    
  18  norm          .10001E-03    6.9693        .23492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0575        .13195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     110.13        69.634        .38328E-04   -1.3605    
  22  Prefactor     .10000E-03    4.5265        .16001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9128        .12856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          19.813        6.6244        .89982E-04   -1.4817    
  25  Prefactor     .10000E-03    13.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .11422        13.987        .20844E-02   -1.5640    
  27  Prefactor     25.725        22.402        .78966E-04   -1.4693    
  28  norm          5.2137        3.3218        .10865E-03   -1.5251    
  29  norm          .10000E-03    17.691        .33770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3618        .20039        .20772E-03   -.81741    
  31  Prefactor     .40771        .21723        .40441E-03   -1.1642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69341e-08
Minuit parameter uncertainties:
  1  0.000112723
  2  10.9941
  3  2.84296
  4  0.547524
  5  0.000286313
  6  1.49484
  7  6.3461e-05
  8  0.000806856
  9  1.79081
  10  4.19821
  11  0.0005982
  12  3.7278
  13  6.43718e-07
  14  1.54372
  15  1.53336
  16  3.32576
  17  0.191233
  18  0.000539074
  19  2.16297e-06
  20  2.39935e-06
  21  69.6854
  22  1.04946e-06
  23  4.13257e-07
  24  6.62462
  25  4.20455e-05
  26  2.52751
  27  22.4094
  28  3.3219
  29  8.70874e-05
  30  0.200504
  31  0.217664
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.120e+01  3.728e+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:  4.077e-01  2.177e-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.362e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 61.44
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 9.76e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 8.69e-05 +/- 2.89e-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) = 5979.95767612
delta logL = 1.199205034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5979.94992471
delta logL = 1.20695644435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.733       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4746       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39262       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=   5979.950     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      211 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.733        3.6338        .30574E-02   -.21833E-02
   2  alpha         1.4746        .21603        .16586        .32634E-04
   3  Normalizat    1.3916        .17830        .46624E-01    .97802E-04
   4  Prefactor     .39262        .20040        .92995E-01    .10283E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7325
  alpha      = 1.47457
  Normalizat = 1.39161
  Prefactor  = 0.392617
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.950     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.733        3.8905        .83218E-04   -1.5053    
   2  alpha         1.4746        .23837        .71179E-02   -.42264    
   3  Normalizat    1.3916        .19344        .20610E-03   -.80872    
   4  Prefactor     .39262        .21651        .41222E-03   -1.1719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95059e-10
Minuit parameter uncertainties:
  1  3.89056
  2  0.238804
  3  0.193544
  4  0.216959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460028': 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) = 5979.94992471
delta logL = 1.20695644454

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.073e+01  3.891e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.475e+00  2.388e-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:  3.926e-01  2.170e-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.392e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 63.99
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.47 +/- 0.24
Photon Flux (Free Index): 6.57e-08 +/- 2.86e-08
Energy Flux (Free Index): 1.67e-04 +/- 9.25e-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/460028/cmap_HighResolution_484012801_484272001_4FGL_J1217.9+3007_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.76e-08', energy_flux2='1.67e-04', photon_flux_error='3.25e-08', dlogl='1.21e+00', energy_flux='8.69e-05', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-09-05 06:39:36.000683', photon_index_error2='0.24', photon_index2='1.47', ts='61.44', fit_tolerance='1e-08', GAL='0.41', photon_index_error='0.00', energy_flux_error2='9.25e-05', EG='1.36', time_epoch_completed='1630849176.0', return_code='0', job_id='460028', GAL2='0.39', EG2='1.39', return_code2='0', energy_flux_error='2.89e-05', photon_flux_error2='2.86e-08', ts2='63.99', photon_index='1.85' WHERE bin_id='944' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:39:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 460028: <4FGL_J1217.9+3007_daily_bin944> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin944 184.476 30.1177 484012801 484272001 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 :                                   822.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            847 sec.

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

