/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 12 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 = 7408
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1170
RA = 183.774, Dec = 16.9372
tmin = 542592001, tmax = 542851201
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='440070', job_status='RUN', time_executed='2021-09-05 05:31:09.506126', time_epoch_executed='1630845069.51' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440070/ft1_4FGL_J1215.0+1656_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440070/ft1_4FGL_J1215.0+1656_daily_bin1170.fits outfile=/scratch/kocevski/440070/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1170.fits ra=183.774 dec=16.9372 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.82
user 6.42
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.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/440070/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/440070/ft1_filtered_4FGL_J1215.0+1656_daily_bin1170.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440070/ft1_filtered_4FGL_J1215.0+1656_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/440070/ltcube_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.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/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits
.....................!
real 11.92
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440070/ft1_filtered_4FGL_J1215.0+1656_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/440070/ltcube_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.fits outfile=/scratch/kocevski/440070/expmap_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.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/440070/ltcube_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.fits
.....................!
real 189.87
user 184.58
sys 3.84

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J1215.0+1656 @ 183.774 16.9372

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/440070/ft1_filtered_4FGL_J1215.0+1656_daily_bin1170.fits scfile=/scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits outfile=/scratch/kocevski/440070/cmap_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.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=183.774 yref=16.9372 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.78
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440070/ft1_filtered_4FGL_J1215.0+1656_daily_bin1170.fits scfile=/scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits outfile=/scratch/kocevski/440070/cmap_HighResolution_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.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=183.774 yref=16.9372 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.67
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/440070/ft1_filtered_4FGL_J1215.0+1656_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/440070/Model_4FGL_J1215.0+1656_daily_bin1170.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/440070/ft1_filtered_4FGL_J1215.0+1656_daily_bin1170.fits......................!
real 27.39
user 24.86
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/440070/ft1_filtered_4FGL_J1215.0+1656_daily_bin1170.fits', '/scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits', expMap='/scratch/kocevski/440070/expmap_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.fits', expCube='/scratch/kocevski/440070/ltcube_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/440070/Model_4FGL_J1215.0+1656_daily_bin1170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1215.0+1656'

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.342e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/440070/ft1_filtered_4FGL_J1215.0+1656_daily_bin1170.fits
Spacecraft file(s): /scratch/kocevski/440070/ft2_4FGL_J1215.0+1656_daily_bin1170.fits
Exposure map: /scratch/kocevski/440070/expmap_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.fits
Exposure cube: /scratch/kocevski/440070/ltcube_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/440070/Model_4FGL_J1215.0+1656_daily_bin1170.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) = 1836.66003411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35240E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3447       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    261.85       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.521       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8251       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8033       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    139.76       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .19559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    495.95       1.0000         .10000E-03   10000.    
    18 'norm      '    15.504       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.050       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.156       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.513       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.776       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67093       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1836.625     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3097 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    848.19       -.86078E-05** at limit **
   2  Prefactor     21.723        37.145        .40451E-06   -.24578E-06
   3  Prefactor     6.3460        16.462        .36038E-05    .53219E-05
   4  Prefactor     1.7057        2.8709        .13275E-06    .90180E-06
   5  Prefactor     262.05        296.54        .18699E-05    .20442E-04
   6  Prefactor     26.519        27.521        .14291E-06    .80078E-06
   7  Prefactor     .10000E-03    16.811       -.15994E-07** at limit **
   8  Prefactor     2.8267        8.0539        .32502E-06   -.14483E-04
   9  Prefactor     .10000E-03    83.768       -.23761E-07** at limit **
  10  Prefactor     3.8044        5.7618        .28619E-06   -.20320E-04
  11  Prefactor     .10000E-03    4.4248       -.66308E-07** at limit **
  12  Prefactor     .10000E-03    75.956        .64829E-06** at limit **
  13  Prefactor     .10000E-03    1.2979       -.22151E-07** at limit **
  14  Prefactor     139.76        98.995        .48795E-06    .38444E-05
  15  Prefactor     .10000E-03    6.6506       -.59500E-07** at limit **
  16  norm          .19557        .24641        .45177E-07    .45630E-04
  17  Prefactor     496.02        440.94        .83882E-06    .51888E-05
  18  norm          15.504        9.4119        .14759E-06    .12946E-07
  19  Prefactor     .10000E-03    8.9964        .63709E-06** at limit **
  20  Prefactor     15.069        39.578        .85417E-06    .88930E-05
  21  Prefactor     .10000E-03    56.281       -.71802E-07** at limit **
  22  Prefactor     19.159        15.461        .32191E-06   -.45204E-05
  23  Prefactor     12.516        18.065        .37854E-06   -.37155E-05
  24  Prefactor     29.777        27.470        .27987E-06   -.21672E-05
  25  Normalizat    .67053        .35195       -.45703E-05    .20081E-04
  26  Prefactor     1.0174        .31520        .12145E-05   -.35420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 21.7228
  Prefactor  = 6.34595
  Prefactor  = 1.7057
  Prefactor  = 262.054
  Prefactor  = 26.5189
  Prefactor  = 0.0001
  Prefactor  = 2.82673
  Prefactor  = 0.0001
  Prefactor  = 3.80444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 139.759
  Prefactor  = 0.0001
  norm       = 0.195575
  Prefactor  = 496.021
  norm       = 15.5043
  Prefactor  = 0.0001
  Prefactor  = 15.0691
  Prefactor  = 0.0001
  Prefactor  = 19.1586
  Prefactor  = 12.5162
  Prefactor  = 29.7767
  Normalizat = 0.670528
  Prefactor  = 1.01742
 **********
 **   18 **HESSE 
 **********

 FCN=   1836.625     FROM HESSE     STATUS=OK           460 CALLS     3557 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    856.44        .21321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.723        37.092        .85947E-04   -1.4775    
   3  Prefactor     6.3460        16.608        .79676E-03   -1.5204    
   4  Prefactor     1.7057        2.8357        .90022E-04   -1.5447    
   5  Prefactor     262.05        298.18        .12525E-03   -1.2456    
   6  Prefactor     26.519        27.528        .77789E-04   -1.4678    
   7  Prefactor     .10000E-03    16.821        .17165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8267        7.9728        .18015E-03   -1.5372    
   9  Prefactor     .10000E-03    83.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8044        5.6941        .11164E-03   -1.5318    
  11  Prefactor     .10000E-03    4.4519        .87613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    76.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2990        .47681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     139.76        98.967        .34075E-04   -1.3338    
  15  Prefactor     .10000E-03    6.6862        .10787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .19557        .23709        .23159E-03   -1.5620    
  17  Prefactor     496.02        441.04        .92121E-04   -1.1216    
  18  norm          15.504        9.4056        .98626E-04   -1.4920    
  19  Prefactor     .10000E-03    9.0079        .12549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.069        39.535        .10324E-03   -1.4931    
  21  Prefactor     .10000E-03    56.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.159        15.464        .91511E-04   -1.4832    
  23  Prefactor     12.516        18.074        .11324E-03   -1.5000    
  24  Prefactor     29.777        27.482        .73424E-04   -1.4616    
  25  Normalizat    .67053        .38313        .29399E-03   -1.0507    
  26  Prefactor     1.0174        .35333        .24077E-03   -.92151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45208e-11
Minuit parameter uncertainties:
  1  0.00183407
  2  37.1315
  3  16.6205
  4  2.83593
  5  299.937
  6  27.5407
  7  8.70736e-06
  8  7.97576
  9  4.50963e-05
  10  5.6949
  11  1.99902e-06
  12  0.000126232
  13  8.11529e-07
  14  99.0842
  15  4.0806e-06
  16  0.237094
  17  444.13
  18  9.40649
  19  1.36811e-06
  20  39.6035
  21  7.59384e-06
  22  15.4677
  23  18.0821
  24  27.4932
  25  0.384671
  26  0.354144
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.999e-06  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.017e+00  3.541e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  6.705e-01  3.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440070/likelihoodResults_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.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): 102
logL (Free Index) = 1836.62656163
delta logL = -0.00106507555142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1836.62549648
delta logL = 6.61248122924e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4288       1.0000          .0000       10.000    
     3 'Normalizat'    .67056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+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=   1836.625     FROM MIGRAD    STATUS=FAILED        90 CALLS      242 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1001.7        .88894E-03** at limit **
   2  Index         2.4489        5.9293        .50000       -.40836E-04
   3  Normalizat    .67053        .22295        .29400E-03    .91550E-05
   4  Prefactor     1.0174        .22268        .24077E-03    .14236E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1836.625     FROM SIMPLEX   STATUS=UNCHANGED    179 CALLS      421 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1001.7        .39717E-03** at limit **
   2  Index         2.4489        5.9293        .14396E-05   -.40836E-04
   3  Normalizat    .67053        .22295        .33848E-06    .91550E-05
   4  Prefactor     1.0174        .22268        .20985E-06    .14236E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1836.625     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      455 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.9050        .17779E-03** at limit **
   2  Index         2.4492        6.2246        .50000       -.40864E-04
   3  Normalizat    .67053        .34123        .11760E-04    .42053E-05
   4  Prefactor     1.0174        .34147        .96309E-05    .90304E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.44924
  Normalizat = 0.670525
  Prefactor  = 1.01743
 **********
 **   18 **HESSE 
 **********

 FCN=   1836.625     FROM HESSE     STATUS=OK            29 CALLS      484 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    4.6037        .35558E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4492        6.2232        .50000       -.53536    
   3  Normalizat    .67053        .34080        .23520E-05   -1.0507    
   4  Prefactor     1.0174        .34107        .19262E-05   -.92151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15848e-09
Minuit parameter uncertainties:
  1  0.000375427
  2  4.30686
  3  0.341882
  4  0.341798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440070': 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) = 1836.62549619
delta logL = 3.56353666575e-07

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.754e-04  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.449e+00  4.307e+00  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.017e+00  3.418e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  6.705e-01  3.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.774 16.937

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/440070/cmap_HighResolution_542592001_542851201_4FGL_J1215.0+1656_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.64e-07', time_completed='2021-09-05 05:39:29.407451', job_id='440070', GAL2='1.02', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630845569.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1170' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:39:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 440070: <4FGL_J1215.0+1656_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:30:41 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:30:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:30:42 2021
Terminated at Sun Sep  5 05:39:30 2021
Results reported at Sun Sep  5 05:39:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1170 183.774 16.9372 542592001 542851201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1215.0+1656 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   462.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   527 sec.
    Turnaround time :                            529 sec.

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

