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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1119
RA = 184.476, Dec = 30.1177
tmin = 529372801, tmax = 529632001
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='460291', job_status='RUN', time_executed='2021-09-05 06:26:02.488740', time_epoch_executed='1630848362.49' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460291

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460291/ft1_4FGL_J1217.9+3007_daily_bin1119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460291/ft2_4FGL_J1217.9+3007_daily_bin1119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460291/ft1_4FGL_J1217.9+3007_daily_bin1119.fits outfile=/scratch/kocevski/460291/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1119.fits ra=184.476 dec=30.1177 rad=12.0 tmin=529372801.0 tmax=529632001.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.52
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460291/ft1_filtered_4FGL_J1217.9+3007_daily_bin1119.fits" evtable="EVENTS" scfile=/scratch/kocevski/460291/ft2_4FGL_J1217.9+3007_daily_bin1119.fits sctable="SC_DATA" outfile=/scratch/kocevski/460291/ltcube_529372801_529632001_4FGL_J1217.9+3007_daily_bin1119.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/460291/ft2_4FGL_J1217.9+3007_daily_bin1119.fits
.....................!
real 12.23
user 11.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460291/ft1_filtered_4FGL_J1217.9+3007_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/460291/ft2_4FGL_J1217.9+3007_daily_bin1119.fits sctable="SC_DATA" expcube=/scratch/kocevski/460291/ltcube_529372801_529632001_4FGL_J1217.9+3007_daily_bin1119.fits outfile=/scratch/kocevski/460291/expmap_529372801_529632001_4FGL_J1217.9+3007_daily_bin1119.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/460291/ltcube_529372801_529632001_4FGL_J1217.9+3007_daily_bin1119.fits
.....................!
real 192.61
user 187.14
sys 5.03

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/460291/ft1_filtered_4FGL_J1217.9+3007_daily_bin1119.fits scfile=/scratch/kocevski/460291/ft2_4FGL_J1217.9+3007_daily_bin1119.fits outfile=/scratch/kocevski/460291/cmap_529372801_529632001_4FGL_J1217.9+3007_daily_bin1119.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460291/ft1_filtered_4FGL_J1217.9+3007_daily_bin1119.fits scfile=/scratch/kocevski/460291/ft2_4FGL_J1217.9+3007_daily_bin1119.fits outfile=/scratch/kocevski/460291/cmap_HighResolution_529372801_529632001_4FGL_J1217.9+3007_daily_bin1119.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.149       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .56871       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1723       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7986       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.809       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.410       1.0000         .10000E-03   10000.    
    12 'norm      '    11.860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9375       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8652       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9849       1.0000         .10000E-03   10000.    
    17 'norm      '    .14458       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5558       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43159E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4013       1.0000         .10000E-03   10000.    
    24 'norm      '    2.4916       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.1665       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12273E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86025       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91468       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=   5917.781     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4141 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.153        14.152       -.31983E-06   -.10095E-03
   2  Prefactor     .10000E-03    10.589       -.51579E-07** at limit **
   3  Prefactor     .57022        6.3535        .45821E-05    .16780E-03
   4  norm          6.1722        1.8579       -.20083E-07   -.33180E-03
   5  Prefactor     .10000E-03    8.9360        .13746E-06** at limit **
   6  Prefactor     1.7989        1.7071        .16060E-06    .22719E-04
   7  Prefactor     .10000E-03    27.974        .10788E-05** at limit **
   8  Prefactor     .10000E-03    42.594       -.11040E-05** at limit **
   9  norm          17.810        2.4591        .49629E-08   -.56135E-03
  10  Prefactor     .10000E-03    .88885        .11340E-07** at limit **
  11  Prefactor     26.406        28.476       -.28174E-07   -.83257E-04
  12  norm          11.860        4.4011        .16800E-07   -.33013E-03
  13  Prefactor     2.9388        6.9052        .86404E-06    .96827E-05
  14  Prefactor     7.8649        3.5740       -.11058E-06   -.10866E-02
  15  Prefactor     1.0629        1.9450        .59513E-06    .30698E-03
  16  Prefactor     4.9851        4.6092        .14662E-06    .26179E-03
  17  norm          .14456        .16431        .54654E-07    .46369E-03
  18  norm          3.5557        3.6063        .83527E-07   -.21268E-03
  19  Prefactor     .10161E-03    8.8181        .29560E-05** at limit **
  20  Prefactor     .10001E-03    31.016       -.21027E-05** at limit **
  21  Prefactor     .10001E-03    93.850       -.24149E-05** at limit **
  22  Prefactor     .10000E-03    2.4967        .10140E-08** at limit **
  23  Prefactor     8.3996        7.0519        .28948E-06   -.86017E-05
  24  norm          2.4926        3.2613        .17495E-06   -.12913E-03
  25  Prefactor     .10000E-03    9.0603       -.12497E-06** at limit **
  26  norm          1.1663        3.0436        .97750E-06    .14561E-03
  27  Prefactor     .10001E-03    50.572        .18744E-05** at limit **
  28  norm          .10000E-03    1.1449       -.25661E-08** at limit **
  29  norm          .10000E-03    1.6000       -.17289E-08** at limit **
  30  Normalizat    .86012        .17485       -.10969E-05   -.43358E-03
  31  Prefactor     .91480        .19817       -.54050E-06   -.36204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1528
  Prefactor  = 0.0001
  Prefactor  = 0.57022
  norm       = 6.17217
  Prefactor  = 0.0001
  Prefactor  = 1.79892
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  norm       = 17.8098
  Prefactor  = 0.0001
  Prefactor  = 26.4061
  norm       = 11.8603
  Prefactor  = 2.93882
  Prefactor  = 7.86486
  Prefactor  = 1.06288
  Prefactor  = 4.98514
  norm       = 0.144558
  norm       = 3.55572
  Prefactor  = 0.000101607
  Prefactor  = 0.000100007
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 8.39956
  norm       = 2.49261
  Prefactor  = 0.0001
  norm       = 1.16634
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.860122
  Prefactor  = 0.914797
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.781     FROM HESSE     STATUS=OK           620 CALLS     4761 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.153        14.133        .10648E-03   -1.4955    
   2  Prefactor     .10000E-03    10.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57022        6.3728        .36561E-03   -1.5557    
   4  norm          6.1722        1.8589        .55386E-04   -1.5211    
   5  Prefactor     .10000E-03    8.9697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7989        1.6946        .93912E-04   -1.5440    
   7  Prefactor     .10000E-03    28.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.810        2.4593        .42728E-04   -1.4864    
  10  Prefactor     .10000E-03    .89046        .70824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.406        28.465        .77952E-04   -1.4680    
  12  norm          11.860        4.3947        .88728E-04   -1.5019    
  13  Prefactor     2.9388        6.8946        .23699E-03   -1.5365    
  14  Prefactor     7.8649        3.5730        .88853E-04   -1.5147    
  15  Prefactor     1.0629        1.7342        .13810E-02   -1.5502    
  16  Prefactor     4.9851        4.6020        .15270E-03   -1.5261    
  17  norm          .14456        .15427        .31881E-03   -1.5632    
  18  norm          3.5557        3.5921        .14104E-03   -1.5331    
  19  Prefactor     .10161E-03    66.853        .34829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    31.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    94.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.5003        .11870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.3996        7.0322        .13831E-03   -1.5128    
  24  norm          2.4926        3.2487        .15339E-03   -1.5392    
  25  Prefactor     .10000E-03    9.0740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1663        3.0134        .21036E-03   -1.5492    
  27  Prefactor     .10001E-03    51.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.1488        .80367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.6003        .95031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .86012        .20364        .25714E-03   -.97876    
  31  Prefactor     .91480        .23098        .29334E-03   -.95626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39496e-08
Minuit parameter uncertainties:
  1  14.1367
  2  1.00198e-05
  3  3.81273
  4  1.85895
  5  3.66224e-05
  6  1.69462
  7  0.00057608
  8  0.000713844
  9  2.45932
  10  4.05613e-07
  11  28.4797
  12  4.39485
  13  6.89648
  14  3.57307
  15  1.73424
  16  4.60232
  17  0.154267
  18  3.59233
  19  0.0207553
  20  0.000942194
  21  0.00220109
  22  4.21955e-07
  23  7.03292
  24  3.2489
  25  3.30053e-05
  26  3.01376
  27  0.00127984
  28  1.89884e-07
  29  2.14846e-08
  30  0.203823
  31  0.231228
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.186e+01  4.395e+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.148e-01  2.312e-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:  8.601e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.46
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 3.83e-08
Energy Flux (Fixed Index): 9.20e-05 +/- 3.41e-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) = 5917.69127627
delta logL = 0.0895047297954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5917.68783591
delta logL = 0.0929450888771

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.082       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7406       1.0000          .0000       5.0000    
     3 'Normalizat'    .86851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91002       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=   5917.688     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.082        5.1164        .28811E-02   -.74977E-02
   2  alpha         1.7405        .29720        .18475        .32188E-05
   3  Normalizat    .86850        .16836        .44498E-01    .17744E-04
   4  Prefactor     .91004        .19745        .66501E-01    .69986E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0823
  alpha      = 1.7405
  Normalizat = 0.868502
  Prefactor  = 0.910043
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.688     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.082        4.2629        .91520E-04   -1.5013    
   2  alpha         1.7405        .26156        .77195E-02   -.30868    
   3  Normalizat    .86850        .19586        .25618E-03   -.97576    
   4  Prefactor     .91004        .22988        .29415E-03   -.95791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45048e-09
Minuit parameter uncertainties:
  1  4.26304
  2  0.262091
  3  0.196023
  4  0.230125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460291': 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) = 5917.68783585
delta logL = 0.0929451479824

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.208e+01  4.263e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.741e+00  2.621e-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.100e-01  2.301e-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:  8.685e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.16
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.74 +/- 0.26
Photon Flux (Free Index): 9.25e-08 +/- 4.07e-08
Energy Flux (Free Index): 1.10e-04 +/- 6.16e-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/460291/cmap_HighResolution_529372801_529632001_4FGL_J1217.9+3007_daily_bin1119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='1.10e-04', photon_flux_error='3.83e-08', dlogl='9.29e-02', energy_flux='9.20e-05', photon_flux2='9.25e-08', job_status='DONE', time_completed='2021-09-05 06:39:36.744467', photon_index_error2='0.26', photon_index2='1.74', ts='29.46', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.16e-05', EG='0.86', time_epoch_completed='1630849176.74', return_code='0', job_id='460291', GAL2='0.91', EG2='0.87', return_code2='0', energy_flux_error='3.41e-05', photon_flux_error2='4.07e-08', ts2='30.16', photon_index='1.85' WHERE bin_id='1119' 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@bullet0108>
Subject: Job 460291: <4FGL_J1217.9+3007_daily_bin1119> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1119 184.476 30.1177 529372801 529632001 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 :                                   806.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

