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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1123
RA = 183.774, Dec = 16.9372
tmin = 530409601, tmax = 530668801
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='440002', job_status='RUN', time_executed='2021-09-05 05:30:46.331526', time_epoch_executed='1630845046.33' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440002

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440002/ft1_4FGL_J1215.0+1656_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440002/ft2_4FGL_J1215.0+1656_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440002/ft1_4FGL_J1215.0+1656_daily_bin1123.fits outfile=/scratch/kocevski/440002/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1123.fits ra=183.774 dec=16.9372 rad=12.0 tmin=530409601.0 tmax=530668801.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.74
user 3.44
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440002/ft1_filtered_4FGL_J1215.0+1656_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/440002/ft2_4FGL_J1215.0+1656_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/440002/ltcube_530409601_530668801_4FGL_J1215.0+1656_daily_bin1123.fits outfile=/scratch/kocevski/440002/expmap_530409601_530668801_4FGL_J1215.0+1656_daily_bin1123.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/440002/ltcube_530409601_530668801_4FGL_J1215.0+1656_daily_bin1123.fits
.....................!
real 190.91
user 185.83
sys 4.65

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/440002/ft1_filtered_4FGL_J1215.0+1656_daily_bin1123.fits scfile=/scratch/kocevski/440002/ft2_4FGL_J1215.0+1656_daily_bin1123.fits outfile=/scratch/kocevski/440002/cmap_530409601_530668801_4FGL_J1215.0+1656_daily_bin1123.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 1.22
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440002/ft1_filtered_4FGL_J1215.0+1656_daily_bin1123.fits scfile=/scratch/kocevski/440002/ft2_4FGL_J1215.0+1656_daily_bin1123.fits outfile=/scratch/kocevski/440002/cmap_HighResolution_530409601_530668801_4FGL_J1215.0+1656_daily_bin1123.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.85
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4265       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9604       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5195       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43624       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6073       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4492       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3454       1.0000         .10000E-03   10000.    
    16 'norm      '    .32011       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2906       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6050       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20914E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8369       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2513       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93265       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.

 FCN=   5805.641     FROM MIGRAD    STATUS=CONVERGED   1101 CALLS     3133 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.769        .18142E-02** at limit **
   2  Prefactor     .10000E-03    9.2216        .18142E-02** at limit **
   3  Prefactor     .10000E-03    4.6125        .15954E-02** at limit **
   4  Prefactor     1.4261        1.7381        .10763E-03   -.20809E-04
   5  Prefactor     .10000E-03    48.736        .18142E-02** at limit **
   6  Prefactor     9.9603        10.169        .63483E-03    .19484E-04
   7  Prefactor     .10000E-03    6.0319        .18142E-02** at limit **
   8  Prefactor     4.5206        4.0642        .13751E-03    .24142E-04
   9  Prefactor     .10000E-03    45.083        .18142E-02** at limit **
  10  Prefactor     .43564        3.2582        .24066E-03    .28589E-03
  11  Prefactor     1.6082        3.0725        .16753E-03   -.14292E-03
  12  Prefactor     .10000E-03    14.185        .18142E-02** at limit **
  13  Prefactor     1.4494        1.4557        .89213E-04    .11342E-04
  14  Prefactor     .10000E-03    52.613        .18142E-02** at limit **
  15  Prefactor     4.3467        6.0708        .19323E-03    .18356E-04
  16  norm          .32018        .21602        .28303E-04    .19642E-03
  17  Prefactor     .10000E-03    64.627        .18142E-02** at limit **
  18  norm          2.2903        3.9607        .18415E-03   -.40128E-05
  19  Prefactor     6.6060        7.2106        .15614E-03   -.41501E-04
  20  Prefactor     .10000E-03    62.243        .36285E-03** at limit **
  21  Prefactor     .10001E-03    49.414        .15187    ** at limit **
  22  Prefactor     .10000E-03    1.8625        .10150E-02** at limit **
  23  Prefactor     .10000E-03    6.3836        .18142E-02** at limit **
  24  Prefactor     7.8361        14.734        .71618E-03   -.18573E-04
  25  Normalizat    1.2513        .22766        .24334E-03   -.35647E-04
  26  Prefactor     .93250        .21386        .26914E-03   -.34214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42605
  Prefactor  = 0.0001
  Prefactor  = 9.96031
  Prefactor  = 0.0001
  Prefactor  = 4.52055
  Prefactor  = 0.000100001
  Prefactor  = 0.435644
  Prefactor  = 1.60817
  Prefactor  = 0.0001
  Prefactor  = 1.44937
  Prefactor  = 0.0001
  Prefactor  = 4.3467
  norm       = 0.320177
  Prefactor  = 0.0001
  norm       = 2.29026
  Prefactor  = 6.60602
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.83609
  Normalizat = 1.2513
  Prefactor  = 0.932499
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.641     FROM HESSE     STATUS=OK           442 CALLS     3575 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6130        .31907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4261        1.7380        .43050E-05   -1.5469    
   5  Prefactor     .10000E-03    48.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9603        10.168        .25393E-04   -1.5077    
   7  Prefactor     .10000E-03    6.0322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5206        4.0633        .55003E-05   -1.5283    
   9  Prefactor     .10000E-03    45.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .43564        3.2485        .96265E-05   -1.5576    
  11  Prefactor     1.6082        3.0691        .67010E-05   -1.5454    
  12  Prefactor     .10000E-03    14.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4494        1.4557        .35685E-05   -1.5467    
  14  Prefactor     .10000E-03    52.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3467        6.0697        .77293E-05   -1.5291    
  16  norm          .32018        .21602        .11321E-05   -1.5595    
  17  Prefactor     .10000E-03    64.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2903        3.9599        .73661E-05   -1.5405    
  19  Prefactor     6.6060        7.2106        .62458E-05   -1.5194    
  20  Prefactor     .10000E-03    62.246        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    49.613        .15144       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.8625        .20301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.8361        14.732        .28647E-04   -1.5148    
  25  Normalizat    1.2513        .22784        .97337E-05   -.85032    
  26  Prefactor     .93250        .21407        .10766E-04   -.95015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00329e-10
Minuit parameter uncertainties:
  1  6.90225e-05
  2  1.62489e-06
  3  1.73953e-06
  4  1.7381
  5  6.86964e-05
  6  10.1698
  7  1.82343e-06
  8  4.06358
  9  0.000420459
  10  2.37913
  11  3.06944
  12  1.58446e-06
  13  1.45573
  14  0.000321343
  15  6.07053
  16  0.216016
  17  0.000198763
  18  3.96036
  19  7.21156
  20  0.000453122
  21  0.00144103
  22  1.28987e-06
  23  2.76985e-07
  24  14.7387
  25  0.22802
  26  0.214259
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.608e+00  3.069e+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:  9.325e-01  2.143e-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:  1.251e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.39
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440002/likelihoodResults_530409601_530668801_4FGL_J1215.0+1656_daily_bin1123.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) = 5805.52048943
delta logL = 0.120181542697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5805.4931047
delta logL = 0.147566272876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0208       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0980       1.0000          .0000       10.000    
     3 'Normalizat'    1.2307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94411       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=   5805.493     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      238 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0210        22.677        .12777E-01    .13837E-02
   2  Index         3.1000        3.1355        .21891        .89205E-04
   3  Normalizat    1.2309        .36668E-01    .55414E-01   -.20161E-03
   4  Prefactor     .94402        .35692E-01    .45565E-01   -.15496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.021
  Index      = 3.09997
  Normalizat = 1.23088
  Prefactor  = 0.944021
 **********
 **   18 **HESSE 
 **********

 FCN=   5805.493     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0210        3.2074        .99295E-04   -1.5506    
   2  Index         3.1000        1.8861        .77626E-02   -.38980    
   3  Normalizat    1.2309        .22489        .24504E-03   -.85654    
   4  Prefactor     .94402        .21564        .26766E-03   -.94619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.415e-10
Minuit parameter uncertainties:
  1  3.20796
  2  1.94272
  3  0.225063
  4  0.215836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440002': 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) = 5805.49310029
delta logL = 0.147570680079

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.021e+00  3.208e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  3.100e+00  1.943e+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:  9.440e-01  2.158e-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:  1.231e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/440002/cmap_HighResolution_530409601_530668801_4FGL_J1215.0+1656_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-05 05:42:54.434623', job_id='440002', GAL2='0.94', fit_tolerance='1e-08', EG2='1.23', EG='1.25', time_epoch_completed='1630845774.43', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.48e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1123' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:42:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 440002: <4FGL_J1215.0+1656_daily_bin1123> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1123> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:30:36 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:30:37 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:37 2021
Terminated at Sun Sep  5 05:42:55 2021
Results reported at Sun Sep  5 05:42:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1123 183.774 16.9372 530409601 530668801 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 :                                   714.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

