/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 88 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1
RA = 184.476, Dec = 30.1177
tmin = 239587201, tmax = 239846401
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='452901', job_status='RUN', time_executed='2021-09-05 06:07:23.971478', time_epoch_executed='1630847243.97' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452901

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452901/ft1_4FGL_J1217.9+3007_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452901/ft2_4FGL_J1217.9+3007_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452901/ft1_4FGL_J1217.9+3007_daily_bin1.fits outfile=/scratch/kocevski/452901/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1.fits ra=184.476 dec=30.1177 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.05
user 0.83
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452901/ft2_4FGL_J1217.9+3007_daily_bin1.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/452901/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/452901/ft1_filtered_4FGL_J1217.9+3007_daily_bin1.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.45
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452901/ft1_filtered_4FGL_J1217.9+3007_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/452901/ft2_4FGL_J1217.9+3007_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/452901/ltcube_239587201_239846401_4FGL_J1217.9+3007_daily_bin1.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/452901/ft2_4FGL_J1217.9+3007_daily_bin1.fits
.....................!
real 9.15
user 8.85
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452901/ft1_filtered_4FGL_J1217.9+3007_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/452901/ft2_4FGL_J1217.9+3007_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/452901/ltcube_239587201_239846401_4FGL_J1217.9+3007_daily_bin1.fits outfile=/scratch/kocevski/452901/expmap_239587201_239846401_4FGL_J1217.9+3007_daily_bin1.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/452901/ltcube_239587201_239846401_4FGL_J1217.9+3007_daily_bin1.fits
.....................!
real 140.03
user 136.38
sys 3.35

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/452901/ft1_filtered_4FGL_J1217.9+3007_daily_bin1.fits scfile=/scratch/kocevski/452901/ft2_4FGL_J1217.9+3007_daily_bin1.fits outfile=/scratch/kocevski/452901/cmap_239587201_239846401_4FGL_J1217.9+3007_daily_bin1.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.45
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452901/ft1_filtered_4FGL_J1217.9+3007_daily_bin1.fits scfile=/scratch/kocevski/452901/ft2_4FGL_J1217.9+3007_daily_bin1.fits outfile=/scratch/kocevski/452901/cmap_HighResolution_239587201_239846401_4FGL_J1217.9+3007_daily_bin1.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.43
user 0.28
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.600       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11143E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89965E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1199       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25202E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3723       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8167       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9686       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31811E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17526E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    11.809       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90411E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.645       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.356       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.1992       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.0250       1.0000         .10000E-03   10000.    
    29 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67862       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0315       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3953.028     FROM MIGRAD    STATUS=FAILED      1496 CALLS     4933 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.597        19.473        .11285E-03   -.63015E-04
   2  Prefactor     .10000E-03    19.779        .18142E-02** at limit **
   3  Prefactor     .10000E-03    6.3692        .30310E-03** at limit **
   4  norm          .10000E-03    .45626        .41131E-03** at limit **
   5  Prefactor     .10001E-03    68.520        .43985E-02** at limit **
   6  Prefactor     2.4865        2.2302        .84196E-04    .26918E-03
   7  Prefactor     .10000E-03    20.983        .18142E-02** at limit **
   8  Prefactor     .10000E-03    17.099        .18142E-02** at limit **
   9  norm          .10000E-03    .77405        .88479E-03** at limit **
  10  Prefactor     5.1208        4.8721        .12868E-03    .22118E-03
  11  Prefactor     .10005E-03    329.70        .62010E-02** at limit **
  12  norm          1.3722        1.8958        .98358E-04   -.49701E-05
  13  Prefactor     .10000E-03    6.5748        .15626E-02** at limit **
  14  Prefactor     2.8152        2.1420        .76431E-04   -.83564E-04
  15  Prefactor     7.9639        3.0359        .63508E-04   -.24666E-03
  16  Prefactor     .10000E-03    9.2310        .24397E-02** at limit **
  17  norm          .23117E-02    .31512        .79161E-02** at limit **
  18  norm          11.809        5.6285        .98698E-04   -.14608E-03
  19  Prefactor     .23096        90.792        .37264E-02    .75790E-03
  20  Prefactor     30.649        23.465        .72377E-04    .39850E-04
  21  Prefactor     24.306        49.108        .81167E-04   -.17508E-04
  22  Prefactor     .10000E-03    2.6477        .99856E-03** at limit **
  23  Prefactor     .10000E-03    2.1500        .89986E-03** at limit **
  24  norm          .10000E-03    3.5243        .11393E-02** at limit **
  25  Prefactor     .10000E-03    25.574        .18142E-02** at limit **
  26  norm          2.1992        2.2612        .93082E-04   -.18577E-03
  27  Prefactor     .10000E-03    8.1416        .17517E-02** at limit **
  28  norm          2.0236        3.7289        .15966E-03    .61102E-03
  29  norm          .10000E-03    6.6889        .15774E-02** at limit **
  30  Normalizat    .67879        .21318        .23860E-03   -.74403E-04
  31  Prefactor     1.0312        .24638        .23472E-03    .14766E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3953.028     FROM SIMPLEX   STATUS=PROGRESS    1690 CALLS     6623 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.597        19.473        .77358E-06   -1.4998    
   2  Prefactor     .10000E-03    19.779        .59729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3692        .30889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .45626        .37674E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    68.520        .33217E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4865        2.2302        .71919E-06   -1.5393    
   7  Prefactor     .10000E-03    20.983        .62713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.099        .42921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .77405        .44607E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1208        4.8721        .71277E-06   -1.5255    
  11  Prefactor     .10005E-03    329.70        .24442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3722        1.8958        .72293E-06   -1.5474    
  13  Prefactor     .10000E-03    6.5748        .41354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8152        2.1420        .71786E-06   -1.5372    
  15  Prefactor     7.9639        3.0359        .70735E-06   -1.5143    
  16  Prefactor     .10000E-03    9.2310        .12492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .23117E-02    .31512        .73358E-06   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.809        5.6285        .70143E-06   -1.5021    
  19  Prefactor     .23096        90.792        .79626E-06   -1.5612    
  20  Prefactor     30.649        23.465        .68124E-06   -1.4600    
  21  Prefactor     24.306        49.108        .68695E-06   -1.4722    
  22  Prefactor     .10000E-03    2.6477        .30483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1500        .13288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.5243        .65851E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.574        .11230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.1992        2.2612        .72005E-06   -1.5411    
  27  Prefactor     .10000E-03    8.1416        .15145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.0236        3.7289        .72064E-06   -1.5423    
  29  norm          .10000E-03    6.6889        .35871E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .67879        .21318        .48929E-06   -1.0474    
  31  Prefactor     1.0312        .24638        .42843E-06   -.91698    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3953.028     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     7230 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.597        19.468        .45140E-05   -.20149E-05
   2  Prefactor     .10000E-03    19.788        .36285E-03** at limit **
   3  Prefactor     .10000E-03    6.3695        .60620E-04** at limit **
   4  norm          .10000E-03    .45628        .82262E-04** at limit **
   5  Prefactor     .10000E-03    69.138        .87970E-03** at limit **
   6  Prefactor     2.4864        2.2290        .33678E-05   -.20254E-04
   7  Prefactor     .10000E-03    20.992        .36285E-03** at limit **
   8  Prefactor     .10000E-03    17.099        .36285E-03** at limit **
   9  norm          .10000E-03    .77469        .17696E-03** at limit **
  10  Prefactor     5.1208        4.8715        .51472E-05    .57427E-05
  11  Prefactor     .10000E-03    342.47        .24804E-02** at limit **
  12  norm          1.3722        1.8957        .39343E-05    .86688E-06
  13  Prefactor     .10000E-03    6.5776        .31252E-03** at limit **
  14  Prefactor     2.8152        2.1411        .15286E-04   -.55779E-05
  15  Prefactor     7.9639        3.0273        .12702E-04   -.21839E-04
  16  Prefactor     .10000E-03    9.2848        .48795E-03** at limit **
  17  norm          .23115E-02    .27364        .86373E-02** at limit **
  18  norm          11.809        5.6259        .19740E-04    .17278E-06
  19  Prefactor     .23105        92.171        .74527E-03    .31261E-04
  20  Prefactor     30.649        23.463        .14475E-04   -.39269E-06
  21  Prefactor     24.306        49.109        .32467E-05   -.10505E-05
  22  Prefactor     .10000E-03    2.6477        .19971E-03** at limit **
  23  Prefactor     .10000E-03    2.1500        .17997E-03** at limit **
  24  norm          .10000E-03    3.5254        .22786E-03** at limit **
  25  Prefactor     .10000E-03    25.586        .36285E-03** at limit **
  26  norm          2.1992        2.2612        .37233E-05   -.42747E-06
  27  Prefactor     .10000E-03    8.1417        .35035E-03** at limit **
  28  norm          2.0235        3.7277        .63864E-05   -.90788E-05
  29  norm          .10000E-03    6.6895        .31549E-03** at limit **
  30  Normalizat    .67879        .21315        .95438E-05    .82193E-05
  31  Prefactor     1.0312        .24640        .46943E-04    .35600E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.1208
  Prefactor  = 0.0001
  norm       = 1.37224
  Prefactor  = 0.0001
  Prefactor  = 2.81522
  Prefactor  = 7.96393
  Prefactor  = 0.0001
  norm       = 0.00231151
  norm       = 11.8091
  Prefactor  = 0.231047
  Prefactor  = 30.6485
  Prefactor  = 24.3064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.19917
  Prefactor  = 0.0001
  norm       = 2.02355
  norm       = 0.0001
  Normalizat = 0.678794
  Prefactor  = 1.03116
 **********
 **   18 **HESSE 
 **********

 FCN=   3953.028     FROM HESSE     STATUS=OK           602 CALLS     7832 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.597        19.479        .90279E-06   -1.4998    
   2  Prefactor     .10000E-03    19.789        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3695        .12124E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .45628        .16452E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.163        .17594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4864        2.2290        .67357E-06   -1.5393    
   7  Prefactor     .10000E-03    20.993        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.099        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .77471        .35392E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1208        4.8722        .10294E-05   -1.5255    
  11  Prefactor     .10000E-03    344.92        .49608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3722        1.8962        .78687E-06   -1.5474    
  13  Prefactor     .10000E-03    6.5777        .62504E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8152        2.1409        .30573E-05   -1.5372    
  15  Prefactor     7.9639        3.0256        .25403E-05   -1.5143    
  16  Prefactor     .10000E-03    9.2870        .97590E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .23115E-02    .28798        .83665E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.809        5.6259        .39479E-05   -1.5021    
  19  Prefactor     .23105        91.990        .14905E-03   -1.5612    
  20  Prefactor     30.649        23.466        .28951E-05   -1.4600    
  21  Prefactor     24.306        49.842        .64934E-06   -1.4722    
  22  Prefactor     .10000E-03    2.6477        .39943E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1500        .35995E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.5255        .45572E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.586        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.1992        2.2612        .37233E-05   -1.5411    
  27  Prefactor     .10000E-03    8.1417        .70069E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.0235        3.7284        .12773E-05   -1.5423    
  29  norm          .10000E-03    6.6895        .63098E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .67879        .21323        .19088E-05   -1.0474    
  31  Prefactor     1.0312        .24644        .93887E-05   -.91698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21044e-10
Minuit parameter uncertainties:
  1  19.4889
  2  1.78969e-06
  3  8.37599e-08
  4  5.01e-09
  5  3.52151e-05
  6  2.22912
  7  7.10888e-07
  8  1.2339e-08
  9  2.83584e-08
  10  4.87257
  11  2.41762e-05
  12  1.89627
  13  5.03978e-07
  14  2.14097
  15  3.02563
  16  5.11645e-07
  17  0.0504728
  18  5.62617
  19  9.23273
  20  23.4726
  21  49.928
  22  8.59301e-09
  23  1.88657e-08
  24  3.2394e-07
  25  1.77856e-06
  26  2.2613
  27  1.53874e-07
  28  3.72887
  29  4.34847e-06
  30  0.213486
  31  0.246713
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.372e+00  1.896e+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:  1.031e+00  2.467e-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:  6.788e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.20e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.47e-05

TS (Fixed Index): 1.11
Ra Dec: 184.476 30.118
Photon Flux Upper Limit: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452901/likelihoodResults_239587201_239846401_4FGL_J1217.9+3007_daily_bin1.txt

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) = 3952.39229975
delta logL = 0.635413701687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3952.3184404
delta logL = 0.70927305329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75776       1.0000         .10000E-03   10000.    
     2 'alpha     '    .92923       1.0000          .0000       5.0000    
     3 'Normalizat'    .68557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0272       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=   3952.318     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75758        .94564        .12281E-01   -.18671E-03
   2  alpha         .92910        .49184        .33308       -.26640E-04
   3  Normalizat    .68556        .17632        .42097E-01    .13059E-04
   4  Prefactor     1.0272        .21124        .41486E-01    .41384E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.757579
  alpha      = 0.9291
  Normalizat = 0.68556
  Prefactor  = 1.02718
 **********
 **   18 **HESSE 
 **********

 FCN=   3952.318     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75758        1.2423        .60696E-04   -1.5534    
   2  alpha         .92910        .66470        .14283E-01   -.67944    
   3  Normalizat    .68556        .20437        .23744E-03   -1.0447    
   4  Prefactor     1.0272        .24494        .23504E-03   -.91829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38237e-09
Minuit parameter uncertainties:
  1  1.24232
  2  0.678375
  3  0.204597
  4  0.245211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452901': 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) = 3952.31844034
delta logL = 0.709273112026

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.576e-01  1.242e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  9.291e-01  6.784e-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:  1.027e+00  2.452e-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:  6.856e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 184.476 30.118
Photon Index (Free Index): 0.93 +/- 0.68
Photon Flux (Free Index): 4.95e-09 +/- 6.17e-09
Energy Flux (Free Index): 5.84e-05 +/- 9.13e-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/452901/cmap_HighResolution_239587201_239846401_4FGL_J1217.9+3007_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-05', comment='SUCCESS', photon_flux='1.20e-08', energy_flux2='5.84e-05', photon_flux_error='1.65e-08', dlogl='7.09e-01', energy_flux='1.06e-05', photon_flux2='4.95e-09', job_status='DONE', time_completed='2021-09-05 06:18:25.226035', photon_index_error2='0.68', photon_index2='0.93', ts='1.11', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.53e-08', energy_flux_error2='9.13e-05', EG='0.68', time_epoch_completed='1630847905.23', return_code='0', job_id='452901', GAL2='1.03', EG2='0.69', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='6.17e-09', ts2='2.53', photon_index='1.85' WHERE bin_id='1' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:18:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 452901: <4FGL_J1217.9+3007_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1 184.476 30.1177 239587201 239846401 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 :                                   663.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            768 sec.

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

