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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1331
RA = 183.774, Dec = 16.9372
tmin = 584323201, tmax = 584582401
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='440284', job_status='RUN', time_executed='2021-09-05 05:31:17.657865', time_epoch_executed='1630845077.66' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440284/ft1_4FGL_J1215.0+1656_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440284/ft2_4FGL_J1215.0+1656_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440284/ft1_4FGL_J1215.0+1656_daily_bin1331.fits outfile=/scratch/kocevski/440284/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1331.fits ra=183.774 dec=16.9372 rad=12.0 tmin=584323201.0 tmax=584582401.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.46
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440284/ft2_4FGL_J1215.0+1656_daily_bin1331.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/440284/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1331.fits evtable="EVENTS" outfile="/scratch/kocevski/440284/ft1_filtered_4FGL_J1215.0+1656_daily_bin1331.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440284/ft1_filtered_4FGL_J1215.0+1656_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/440284/ft2_4FGL_J1215.0+1656_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/440284/ltcube_584323201_584582401_4FGL_J1215.0+1656_daily_bin1331.fits outfile=/scratch/kocevski/440284/expmap_584323201_584582401_4FGL_J1215.0+1656_daily_bin1331.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/440284/ltcube_584323201_584582401_4FGL_J1215.0+1656_daily_bin1331.fits
.....................!
real 191.45
user 185.70
sys 5.37

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/440284/ft1_filtered_4FGL_J1215.0+1656_daily_bin1331.fits scfile=/scratch/kocevski/440284/ft2_4FGL_J1215.0+1656_daily_bin1331.fits outfile=/scratch/kocevski/440284/cmap_584323201_584582401_4FGL_J1215.0+1656_daily_bin1331.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440284/ft1_filtered_4FGL_J1215.0+1656_daily_bin1331.fits scfile=/scratch/kocevski/440284/ft2_4FGL_J1215.0+1656_daily_bin1331.fits outfile=/scratch/kocevski/440284/cmap_HighResolution_584323201_584582401_4FGL_J1215.0+1656_daily_bin1331.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.889       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4470       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4755       1.0000         .10000E-03   10000.    
     9 'Prefactor '    77.398       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1231       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2128       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.556       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .37815E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0857       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.401       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4031       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66698       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=   5894.064     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3108 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.860        43.627       -.40236E-04    .58616E-05
   2  Prefactor     8.9012        20.382       -.54391E-06   -.40244E-05
   3  Prefactor     .10000E-03    11.303       -.26510E-07** at limit **
   4  Prefactor     1.4466        2.3355       -.41331E-06   -.83523E-03
   5  Prefactor     .10000E-03    93.665       -.41929E-06** at limit **
   6  Prefactor     .10000E-03    4.6529       -.17786E-06** at limit **
   7  Prefactor     .10000E-03    14.603        .24330E-05** at limit **
   8  Prefactor     3.4762        3.0234        .17326E-06   -.45487E-04
   9  Prefactor     77.415        75.518        .16476E-04   -.98042E-05
  10  Prefactor     .85794        1.9889       -.74342E-06   -.11973E-02
  11  Prefactor     .10000E-03    .94310       -.89356E-07** at limit **
  12  Prefactor     .10000E-03    9.1529       -.14562E-06** at limit **
  13  Prefactor     4.1231        2.2674        .24821E-07    .33245E-04
  14  Prefactor     2.2162        30.182       -.44071E-05   -.95601E-04
  15  Prefactor     .10000E-03    1.6148        .24895E-07** at limit **
  16  norm          .10000E-03    .10741       -.25522E-07** at limit **
  17  Prefactor     .10000E-03    31.046       -.19981E-05** at limit **
  18  norm          17.555        5.9060       -.12700E-05    .67257E-04
  19  Prefactor     14.808        12.855        .15250E-05   -.26102E-03
  20  Prefactor     .10002E-03    107.61        .14614E-04** at limit **
  21  Prefactor     .10000E-03    15.044       -.28405E-05** at limit **
  22  Prefactor     4.0864        6.8623       -.63784E-06   -.27169E-03
  23  Prefactor     10.400        10.225       -.59387E-06   -.52548E-04
  24  Prefactor     .10000E-03    4.4781       -.17908E-07** at limit **
  25  Normalizat    1.4033        .19114        .26431E-05   -.18001E-03
  26  Prefactor     .66674        .17665       -.85288E-06    .66257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8598
  Prefactor  = 8.90124
  Prefactor  = 0.0001
  Prefactor  = 1.44659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.47623
  Prefactor  = 77.4153
  Prefactor  = 0.857941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12311
  Prefactor  = 2.21622
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5549
  Prefactor  = 14.8085
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 4.08638
  Prefactor  = 10.3997
  Prefactor  = 0.0001
  Normalizat = 1.40325
  Prefactor  = 0.66674
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.064     FROM HESSE     STATUS=OK           458 CALLS     3566 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.860        43.721        .87635E-04   -1.4794    
   2  Prefactor     8.9012        20.117        .13437E-03   -1.5111    
   3  Prefactor     .10000E-03    11.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4466        2.2919        .13161E-03   -1.5467    
   5  Prefactor     .10000E-03    93.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6741        .16172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4762        3.0168        .11964E-03   -1.5335    
   9  Prefactor     77.415        75.375        .22822E-03   -1.3946    
  10  Prefactor     .85794        1.9347        .15625E-03   -1.5523    
  11  Prefactor     .10000E-03    1.5521        .14328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.1590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1231        2.2688        .83150E-04   -1.5302    
  14  Prefactor     2.2162        30.380        .27650E-03   -1.5410    
  15  Prefactor     .10000E-03    1.6165        .95259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .34270        .48000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.555        5.9045        .95590E-04   -1.4870    
  19  Prefactor     14.808        12.759        .10390E-03   -1.4938    
  20  Prefactor     .10002E-03    109.86        .42578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.0864        6.8593        .19946E-03   -1.5304    
  23  Prefactor     10.400        10.227        .12424E-03   -1.5063    
  24  Prefactor     .10000E-03    4.4868        .15865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4033        .22495        .22425E-03   -.80535    
  26  Prefactor     .66674        .20741        .29767E-03   -1.0485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69406e-09
Minuit parameter uncertainties:
  1  43.7884
  2  20.1322
  3  9.27513e-06
  4  2.29204
  5  0.000131539
  6  3.55695e-05
  7  0.000216142
  8  3.01688
  9  75.4678
  10  1.93483
  11  9.46261e-06
  12  6.22941e-06
  13  2.26881
  14  16.4207
  15  3.22716e-06
  16  1.29339e-06
  17  1.10803e-07
  18  5.9047
  19  12.7617
  20  0.00268072
  21  1.72011e-06
  22  6.86061
  23  10.2284
  24  5.88656e-06
  25  0.225104
  26  0.207648
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  9.463e-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:  6.667e-01  2.076e-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.403e+00  2.251e-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: 5.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440284/likelihoodResults_584323201_584582401_4FGL_J1215.0+1656_daily_bin1331.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) = 5894.06726164
delta logL = -0.00305596834551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5894.06420299
delta logL = 2.6812631404e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3643       1.0000          .0000       10.000    
     3 'Normalizat'    1.4033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66673       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=   5894.064     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      249 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0032        .37378E-01** at limit **
   2  Index         1.8583        9.0635        .50000       -.29211E-06
   3  Normalizat    1.4033        .37175E-02    .50723E-01    .32582E-04
   4  Prefactor     .66674        .35569E-02    .67269E-01    .78828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85826
  Normalizat = 1.40326
  Prefactor  = 0.666737
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.064     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.950        .18700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8583        8.9784        .50000       -.67943    
   3  Normalizat    1.4033        .17772E-01    .22425E-03   -.80534    
   4  Prefactor     .66674        .16979E-01    .29767E-03   -1.0485    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.28395e-11
Minuit parameter uncertainties:
  1  2.82549e-05
  2  187.824
  3  0.0177716
  4  0.0169787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440284': 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): 102
logL (Free Index) = 5894.06418936
delta logL = 1.63063368745e-05

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.825e-05  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.858e+00  1.878e+02  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:  6.667e-01  1.698e-02  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.403e+00  1.777e-02  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/440284/cmap_HighResolution_584323201_584582401_4FGL_J1215.0+1656_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-09-05 05:43:24.169937', job_id='440284', GAL2='0.67', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630845804.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.63e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1331' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:43:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 440284: <4FGL_J1215.0+1656_daily_bin1331> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1331 183.774 16.9372 584323201 584582401 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 :                                   721.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            748 sec.

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

