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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin810
RA = 183.774, Dec = 16.9372
tmin = 449280001, tmax = 449539201
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='438554', job_status='RUN', time_executed='2021-09-05 05:25:53.208899', time_epoch_executed='1630844753.21' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438554

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438554/ft1_4FGL_J1215.0+1656_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438554/ft2_4FGL_J1215.0+1656_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438554/ft1_4FGL_J1215.0+1656_daily_bin810.fits outfile=/scratch/kocevski/438554/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin810.fits ra=183.774 dec=16.9372 rad=12.0 tmin=449280001.0 tmax=449539201.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.07
user 5.53
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438554/ft1_filtered_4FGL_J1215.0+1656_daily_bin810.fits" evtable="EVENTS" scfile=/scratch/kocevski/438554/ft2_4FGL_J1215.0+1656_daily_bin810.fits sctable="SC_DATA" outfile=/scratch/kocevski/438554/ltcube_449280001_449539201_4FGL_J1215.0+1656_daily_bin810.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/438554/ft2_4FGL_J1215.0+1656_daily_bin810.fits
.....................!
real 12.93
user 12.06
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438554/ft1_filtered_4FGL_J1215.0+1656_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/438554/ft2_4FGL_J1215.0+1656_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/438554/ltcube_449280001_449539201_4FGL_J1215.0+1656_daily_bin810.fits outfile=/scratch/kocevski/438554/expmap_449280001_449539201_4FGL_J1215.0+1656_daily_bin810.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/438554/ltcube_449280001_449539201_4FGL_J1215.0+1656_daily_bin810.fits
.....................!
real 194.19
user 186.65
sys 6.04

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/438554/ft1_filtered_4FGL_J1215.0+1656_daily_bin810.fits scfile=/scratch/kocevski/438554/ft2_4FGL_J1215.0+1656_daily_bin810.fits outfile=/scratch/kocevski/438554/cmap_449280001_449539201_4FGL_J1215.0+1656_daily_bin810.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438554/ft1_filtered_4FGL_J1215.0+1656_daily_bin810.fits scfile=/scratch/kocevski/438554/ft2_4FGL_J1215.0+1656_daily_bin810.fits outfile=/scratch/kocevski/438554/cmap_HighResolution_449280001_449539201_4FGL_J1215.0+1656_daily_bin810.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.940       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .59492       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    128.31       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0984       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13904E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10479E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0014       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.790       1.0000         .10000E-03   10000.    
    18 'norm      '    25.161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.324       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.305       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.366       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2266       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64163       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=   4734.592     FROM MIGRAD    STATUS=FAILED      1112 CALLS     3605 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.947        51.163        .52258E-04    .26758E-04
   2  Prefactor     .10000E-03    41.962        .18142E-02** at limit **
   3  Prefactor     .10000E-03    5.2415        .15364E-02** at limit **
   4  Prefactor     .10000E-03    1.2036        .14541E-03** at limit **
   5  Prefactor     .10000E-03    89.746        .18142E-02** at limit **
   6  Prefactor     .62816        68.828        .44142E-02    .11045E-02
   7  Prefactor     20.067        26.508        .89424E-04    .89883E-04
   8  Prefactor     .10000E-03    2.3248        .10151E-02** at limit **
   9  Prefactor     127.96        149.60        .17771E-03   -.59111E-04
  10  Prefactor     2.1003        2.5292        .11552E-03   -.70062E-03
  11  Prefactor     .10000E-03    3.2045        .18388E-02** at limit **
  12  Prefactor     .10000E-03    10.754        .18142E-02** at limit **
  13  Prefactor     .22611E-02    3.4164        .30517E-01** at limit **
  14  Prefactor     .10000E-03    14.343        .18142E-02** at limit **
  15  Prefactor     .10000E-03    3.7233        .12940E-02** at limit **
  16  norm          1.0016        .35089        .22732E-04   -.93523E-04
  17  Prefactor     21.642        133.70        .85807E-04   -.27691E-04
  18  norm          25.164        8.5962        .79860E-04    .59790E-05
  19  Prefactor     22.325        13.083        .84776E-04   -.93872E-05
  20  Prefactor     11.309        22.644        .11915E-03   -.14312E-04
  21  Prefactor     .10000E-03    18.221        .18142E-02** at limit **
  22  Prefactor     .10000E-03    9.6672        .18142E-02** at limit **
  23  Prefactor     .10000E-03    9.6131        .18142E-02** at limit **
  24  Prefactor     37.377        25.132        .65565E-04   -.10230E-04
  25  Normalizat    1.2259        .25374        .24142E-03    .26252E-03
  26  Prefactor     .64218        .21968        .29550E-03    .72020E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4734.592     FROM SIMPLEX   STATUS=UNCHANGED   1318 CALLS     4923 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.947        51.163        .77695E-06   -1.4171    
   2  Prefactor     .10000E-03    41.962        .62498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2415        .19713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2036        .83384E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    89.746        .11798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62816        68.828        .73415E-06   -1.5549    
   7  Prefactor     20.067        26.508        .71861E-06   -1.4812    
   8  Prefactor     .10000E-03    2.3248        .16514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     127.96        149.60        .65431E-06   -1.3441    
  10  Prefactor     2.1003        2.5292        .74696E-06   -1.5418    
  11  Prefactor     .10000E-03    3.2045        .13361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.754        .48952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22611E-02    3.4164        .86985E-06   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.343        .43765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7233        .28242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0016        .35089        .75225E-06   -1.5508    
  17  Prefactor     21.642        133.70        .79601E-06   -1.4777    
  18  norm          25.164        8.5962        .72226E-06   -1.4704    
  19  Prefactor     22.325        13.083        .72365E-06   -1.4763    
  20  Prefactor     11.309        22.644        .73875E-06   -1.5035    
  21  Prefactor     .10000E-03    18.221        .72203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.6672        .16541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.6131        .33147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.377        25.132        .70251E-06   -1.4484    
  25  Normalizat    1.2259        .25374        .41606E-06   -.85805    
  26  Prefactor     .64218        .21968        .51330E-06   -1.0584    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4734.592     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     5368 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.947        51.160        .10452E-04    .87019E-07
   2  Prefactor     .10000E-03    41.979        .36285E-03** at limit **
   3  Prefactor     .10000E-03    5.2419        .30729E-03** at limit **
   4  Prefactor     .10000E-03    1.2036        .29081E-04** at limit **
   5  Prefactor     .10000E-03    89.750        .36285E-03** at limit **
   6  Prefactor     .62817        66.485        .88284E-03    .44170E-04
   7  Prefactor     20.067        26.494        .35769E-05    .12713E-06
   8  Prefactor     .10000E-03    2.3253        .20303E-03** at limit **
   9  Prefactor     127.97        147.08        .71084E-05   -.63973E-06
  10  Prefactor     2.1003        2.5287        .46207E-05    .10826E-04
  11  Prefactor     .10000E-03    3.2113        .36777E-03** at limit **
  12  Prefactor     .10000E-03    10.754        .36285E-03** at limit **
  13  Prefactor     .22608E-02    2.8187        .34888E-01** at limit **
  14  Prefactor     .10000E-03    14.343        .36285E-03** at limit **
  15  Prefactor     .10000E-03    3.7235        .25880E-03** at limit **
  16  norm          1.0016        .35085        .90927E-06    .36898E-04
  17  Prefactor     21.643        133.70        .17161E-04    .52997E-07
  18  norm          25.165        8.5956        .31944E-05    .16371E-04
  19  Prefactor     22.325        13.082        .33910E-05    .67051E-06
  20  Prefactor     11.309        22.641        .47661E-05    .47707E-06
  21  Prefactor     .10000E-03    18.221        .36285E-03** at limit **
  22  Prefactor     .10000E-03    9.6728        .36285E-03** at limit **
  23  Prefactor     .10000E-03    9.6146        .36285E-03** at limit **
  24  Prefactor     37.377        25.128        .26226E-05    .34679E-06
  25  Normalizat    1.2259        .25371        .48284E-04    .97949E-05
  26  Prefactor     .64219        .21984        .11820E-04    .75021E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.9469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.628174
  Prefactor  = 20.0669
  Prefactor  = 0.0001
  Prefactor  = 127.966
  Prefactor  = 2.10031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00226076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00156
  Prefactor  = 21.6426
  norm       = 25.1645
  Prefactor  = 22.3254
  Prefactor  = 11.3086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3771
  Normalizat = 1.22593
  Prefactor  = 0.642186
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.592     FROM HESSE     STATUS=OK           442 CALLS     5810 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.947        51.160        .10452E-04   -1.4171    
   2  Prefactor     .10000E-03    41.980        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2419        .61457E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2036        .58162E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    89.750        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62817        65.888        .17657E-03   -1.5549    
   7  Prefactor     20.067        26.494        .35769E-05   -1.4812    
   8  Prefactor     .10000E-03    2.3253        .40605E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     127.97        146.73        .14217E-05   -1.3441    
  10  Prefactor     2.1003        2.5285        .92413E-06   -1.5418    
  11  Prefactor     .10000E-03    3.2115        .73554E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.754        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22608E-02    2.9630        .33668E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.343        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7235        .51759E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0016        .35086        .36974E-06   -1.5508    
  17  Prefactor     21.643        133.70        .17161E-04   -1.4777    
  18  norm          25.165        8.5961        .63888E-06   -1.4704    
  19  Prefactor     22.325        13.063        .67821E-06   -1.4763    
  20  Prefactor     11.309        22.663        .95322E-06   -1.5035    
  21  Prefactor     .10000E-03    18.221        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.6730        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.6146        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.377        25.127        .26226E-05   -1.4484    
  25  Normalizat    1.2259        .25386        .96568E-05   -.85805    
  26  Prefactor     .64219        .22000        .23640E-05   -1.0584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4589e-11
Minuit parameter uncertainties:
  1  51.1985
  2  7.97313e-06
  3  4.07462e-07
  4  2.46486e-08
  5  2.86319e-06
  6  12.8804
  7  26.5098
  8  1.49949e-07
  9  147.151
  10  2.52862
  11  3.2751e-07
  12  9.41381e-08
  13  0.160037
  14  2.04543e-08
  15  1.5288e-07
  16  0.350857
  17  107.945
  18  8.59652
  19  13.0647
  20  22.6802
  21  3.13332e-07
  22  1.23912e-06
  23  5.25585e-07
  24  25.134
  25  0.254119
  26  0.2203
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.275e-07  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.422e-01  2.203e-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.226e+00  2.541e-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: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438554/likelihoodResults_449280001_449539201_4FGL_J1215.0+1656_daily_bin810.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) = 4734.59345384
delta logL = -0.00148582152087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4734.59196883
delta logL = -8.15327439341e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3936       1.0000          .0000       10.000    
     3 'Normalizat'    1.2260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64218       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=   4734.592     FROM MIGRAD    STATUS=FAILED        91 CALLS      246 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10223E-03    448.70        .18581E-02** at limit **
   2  Index         2.1846        5.1609        .95714E-01    .14023E-04
   3  Normalizat    1.2259        .71692E-01    .24142E-03   -.35198E-03
   4  Prefactor     .64219        .65802E-01    .29550E-03   -.14254E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4734.592     FROM SIMPLEX   STATUS=PROGRESS     149 CALLS      395 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    448.70        .21694E-03** at limit **
   2  Index         2.1844        5.1609        .76020E-04    .14023E-04
   3  Normalizat    1.2259        .71692E-01    .33747E-05   -.35198E-03
   4  Prefactor     .64218        .65802E-01    .26223E-05   -.14254E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4734.592     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      432 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6237        .37162E-03** at limit **
   2  Index         2.1017        5.3283        .38286E-02   -.74830E-07
   3  Normalizat    1.2259        .23664        .48284E-04   -.51470E-04
   4  Prefactor     .64219        .21702        .11820E-04    .71753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10166
  Normalizat = 1.22593
  Prefactor  = 0.642188
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.592     FROM HESSE     STATUS=OK            23 CALLS      455 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6230        .74324E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1017        5.3921        .76571E-03   -.61832    
   3  Normalizat    1.2259        .23684        .96569E-05   -.85805    
   4  Prefactor     .64219        .21725        .23640E-05   -1.0584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04796e-10
Minuit parameter uncertainties:
  1  1.05649e-05
  2  152.856
  3  0.237051
  4  0.217532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438554': 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) = 4734.59196625
delta logL = 1.76795765583e-06

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.056e-05  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.102e+00  1.529e+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.422e-01  2.175e-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.226e+00  2.371e-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/438554/cmap_HighResolution_449280001_449539201_4FGL_J1215.0+1656_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-09-05 05:39:15.172041', job_id='438554', GAL2='0.64', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630845555.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.77e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='810' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:39:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 438554: <4FGL_J1215.0+1656_daily_bin810> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin810> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 05:25:33 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:25:35 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:25:35 2021
Terminated at Sun Sep  5 05:39:16 2021
Results reported at Sun Sep  5 05:39:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin810 183.774 16.9372 449280001 449539201 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 :                                   792.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

