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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1560
RA = 183.774, Dec = 16.9372
tmin = 643680001, tmax = 643939201
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='441707', job_status='RUN', time_executed='2021-09-05 05:38:38.918118', time_epoch_executed='1630845518.92' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441707

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441707/ft1_4FGL_J1215.0+1656_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441707/ft2_4FGL_J1215.0+1656_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441707/ft1_4FGL_J1215.0+1656_daily_bin1560.fits outfile=/scratch/kocevski/441707/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1560.fits ra=183.774 dec=16.9372 rad=12.0 tmin=643680001.0 tmax=643939201.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.47
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/441707/ft2_4FGL_J1215.0+1656_daily_bin1560.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/441707/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1560.fits evtable="EVENTS" outfile="/scratch/kocevski/441707/ft1_filtered_4FGL_J1215.0+1656_daily_bin1560.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.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441707/ft1_filtered_4FGL_J1215.0+1656_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/441707/ft2_4FGL_J1215.0+1656_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/441707/ltcube_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.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/441707/ft2_4FGL_J1215.0+1656_daily_bin1560.fits
.....................!
real 12.60
user 12.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441707/ft1_filtered_4FGL_J1215.0+1656_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/441707/ft2_4FGL_J1215.0+1656_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/441707/ltcube_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.fits outfile=/scratch/kocevski/441707/expmap_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.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/441707/ltcube_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.fits
.....................!
real 190.02
user 184.76
sys 4.01

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/441707/ft1_filtered_4FGL_J1215.0+1656_daily_bin1560.fits scfile=/scratch/kocevski/441707/ft2_4FGL_J1215.0+1656_daily_bin1560.fits outfile=/scratch/kocevski/441707/cmap_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441707/ft1_filtered_4FGL_J1215.0+1656_daily_bin1560.fits scfile=/scratch/kocevski/441707/ft2_4FGL_J1215.0+1656_daily_bin1560.fits outfile=/scratch/kocevski/441707/cmap_HighResolution_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/441707/ft1_filtered_4FGL_J1215.0+1656_daily_bin1560.fits', '/scratch/kocevski/441707/ft2_4FGL_J1215.0+1656_daily_bin1560.fits', expMap='/scratch/kocevski/441707/expmap_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.fits', expCube='/scratch/kocevski/441707/ltcube_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/441707/Model_4FGL_J1215.0+1656_daily_bin1560.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/441707/ft1_filtered_4FGL_J1215.0+1656_daily_bin1560.fits
Spacecraft file(s): /scratch/kocevski/441707/ft2_4FGL_J1215.0+1656_daily_bin1560.fits
Exposure map: /scratch/kocevski/441707/expmap_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.fits
Exposure cube: /scratch/kocevski/441707/ltcube_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/441707/Model_4FGL_J1215.0+1656_daily_bin1560.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) = 5023.20938885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.974       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    165.51       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0347       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7774       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1139       1.0000         .10000E-03   10000.    
    16 'norm      '    .24996       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7994       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.569       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3565       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6839       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.133       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88320       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80639       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=   5023.207     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3065 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.967        38.680       -.66337E-05    .10760E-03
   2  Prefactor     8.9152        19.824       -.22359E-05    .76049E-06
   3  Prefactor     .10000E-03    4.5660       -.49170E-07** at limit **
   4  Prefactor     3.5455        2.1231       -.29283E-08   -.14478E-03
   5  Prefactor     165.49        116.84       -.15565E-04    .10652E-03
   6  Prefactor     .10000E-03    4.1129        .99735E-07** at limit **
   7  Prefactor     11.883        13.244        .43591E-07   -.70208E-06
   8  Prefactor     8.4049        4.7800       -.26019E-06   -.74390E-04
   9  Prefactor     .10000E-03    27.913       -.11885E-05** at limit **
  10  Prefactor     .10000E-03    2.2485       -.48834E-07** at limit **
  11  Prefactor     4.0367        3.0799       -.17773E-06   -.13323E-03
  12  Prefactor     .10000E-03    14.958        .22949E-06** at limit **
  13  Prefactor     3.0834        2.5324       -.95360E-07   -.89303E-04
  14  Prefactor     9.7758        18.894       -.87133E-06   -.56543E-05
  15  Prefactor     7.1126        6.5447       -.34613E-07   -.10256E-04
  16  norm          .24994        .19289       -.41199E-07   -.56736E-03
  17  Prefactor     .10000E-03    37.451        .16240E-05** at limit **
  18  norm          1.9440        4.8632       -.79955E-06   -.59774E-03
  19  Prefactor     4.7997        5.1644        .10022E-06    .45655E-04
  20  Prefactor     .10000E-03    11.383       -.13339E-06** at limit **
  21  Prefactor     25.580        32.149        .13159E-04   -.14518E-03
  22  Prefactor     5.3555        6.9869       -.48550E-06   -.18233E-03
  23  Prefactor     2.6737        10.692       -.67420E-05   -.25016E-03
  24  Prefactor     17.137        16.049        .41952E-06    .23779E-04
  25  Normalizat    .88336        .18920        .25785E-05   -.30403E-05
  26  Prefactor     .80630        .17396       -.24227E-06    .11121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.9675
  Prefactor  = 8.91519
  Prefactor  = 0.0001
  Prefactor  = 3.54554
  Prefactor  = 165.491
  Prefactor  = 0.0001
  Prefactor  = 11.8831
  Prefactor  = 8.40489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03665
  Prefactor  = 0.0001
  Prefactor  = 3.08342
  Prefactor  = 9.77583
  Prefactor  = 7.11264
  norm       = 0.249941
  Prefactor  = 0.0001
  norm       = 1.94396
  Prefactor  = 4.79968
  Prefactor  = 0.0001
  Prefactor  = 25.5796
  Prefactor  = 5.35549
  Prefactor  = 2.67368
  Prefactor  = 17.1367
  Normalizat = 0.883362
  Prefactor  = 0.806303
 **********
 **   18 **HESSE 
 **********

 FCN=   5023.207     FROM HESSE     STATUS=OK           464 CALLS     3529 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.967        38.666        .61154E-04   -1.4396    
   2  Prefactor     8.9152        19.829        .13422E-03   -1.5111    
   3  Prefactor     .10000E-03    4.5869        .14787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5455        2.1167        .73687E-04   -1.5331    
   5  Prefactor     165.49        116.39        .15676E-03   -1.3128    
   6  Prefactor     .10000E-03    4.1208        .14036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.883        13.246        .11620E-03   -1.5018    
   8  Prefactor     8.4049        4.7541        .10854E-03   -1.5128    
   9  Prefactor     .10000E-03    27.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6623        .19609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0367        2.9869        .99938E-04   -1.5306    
  12  Prefactor     .10000E-03    14.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0834        2.5304        .97253E-04   -1.5357    
  14  Prefactor     9.7758        18.908        .12815E-03   -1.5083    
  15  Prefactor     7.1126        6.4722        .15040E-03   -1.5175    
  16  norm          .24994        .18794        .25897E-04   -1.5608    
  17  Prefactor     .10000E-03    37.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9440        4.8169        .21606E-03   -1.5429    
  19  Prefactor     4.7997        5.1656        .16277E-03   -1.5270    
  20  Prefactor     .10000E-03    11.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.580        32.173        .79222E-04   -1.4696    
  22  Prefactor     5.3555        6.9966        .17364E-03   -1.5245    
  23  Prefactor     2.6737        10.980        .24872E-03   -1.5381    
  24  Prefactor     17.137        16.012        .96760E-04   -1.4880    
  25  Normalizat    .88336        .21673        .24117E-03   -.97047    
  26  Prefactor     .80630        .19871        .24725E-03   -.99496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43892e-10
Minuit parameter uncertainties:
  1  38.6884
  2  19.844
  3  1.69008e-06
  4  2.11671
  5  116.549
  6  1.54803e-05
  7  13.2497
  8  4.75436
  9  4.25801e-05
  10  1.43158e-05
  11  2.98697
  12  2.24559e-06
  13  2.53046
  14  18.9199
  15  6.47286
  16  0.187936
  17  5.72912e-05
  18  4.81784
  19  5.16606
  20  1.50476e-05
  21  32.1946
  22  6.99764
  23  10.8397
  24  16.0155
  25  0.216946
  26  0.198891
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  4.037e+00  2.987e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  8.063e-01  1.989e-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:  8.834e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/441707/likelihoodResults_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.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) = 5023.20487389
delta logL = 0.00212593136712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5023.20308194
delta logL = 0.00391788474553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2660       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3475       1.0000          .0000       10.000    
     3 'Normalizat'    .88596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80432       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.

 FCN=   5023.203     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2654        84.994        .48768E-02    .51914E-03
   2  Index         2.3476        6.0512        .15004        .17358E-04
   3  Normalizat    .88601        .90088E-01    .44722E-01   -.18371E-03
   4  Prefactor     .80431        .74997E-01    .43773E-01    .27086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26539
  Index      = 2.3476
  Normalizat = 0.886009
  Prefactor  = 0.804307
 **********
 **   18 **HESSE 
 **********

 FCN=   5023.203     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2654        4.2028        .10313E-03   -1.5295    
   2  Index         2.3476        .72762        .73762E-02   -.55917    
   3  Normalizat    .88601        .20185        .24084E-03   -.96954    
   4  Prefactor     .80431        .19777        .24751E-03   -.99570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06786e-09
Minuit parameter uncertainties:
  1  4.20309
  2  0.731238
  3  0.202022
  4  0.197945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441707': 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) = 5023.20308181
delta logL = 0.00391801935075

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  4.265e+00  4.203e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.348e+00  7.312e-01  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:  8.043e-01  1.979e-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:  8.860e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 183.774 16.937
Photon Index (Free Index): 2.35 +/- 0.73
Photon Flux (Free Index): 4.87e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.73e-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/441707/cmap_HighResolution_643680001_643939201_4FGL_J1215.0+1656_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='1.71e-05', photon_flux_error='3.72e-08', dlogl='3.92e-03', energy_flux='1.63e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2021-09-05 05:49:43.742040', photon_index_error2='0.73', photon_index2='2.35', ts='3.04', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.73e-05', EG='0.88', time_epoch_completed='1630846183.74', return_code='0', job_id='441707', GAL2='0.80', EG2='0.89', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.02e-08', ts2='3.03', photon_index='2.41' WHERE bin_id='1560' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:49:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 441707: <4FGL_J1215.0+1656_daily_bin1560> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1560> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 05:35:31 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:35:32 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:35:32 2021
Terminated at Sun Sep  5 05:49:44 2021
Results reported at Sun Sep  5 05:49:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1560 183.774 16.9372 643680001 643939201 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 :                                   658.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

