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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1048
RA = 183.774, Dec = 16.9372
tmin = 510969601, tmax = 511228801
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='439896', job_status='RUN', time_executed='2021-09-05 05:32:48.739504', time_epoch_executed='1630845168.74' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439896/ft1_4FGL_J1215.0+1656_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439896/ft2_4FGL_J1215.0+1656_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439896/ft1_4FGL_J1215.0+1656_daily_bin1048.fits outfile=/scratch/kocevski/439896/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1048.fits ra=183.774 dec=16.9372 rad=12.0 tmin=510969601.0 tmax=511228801.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.56
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439896/ft2_4FGL_J1215.0+1656_daily_bin1048.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/439896/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/439896/ft1_filtered_4FGL_J1215.0+1656_daily_bin1048.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/439896/ft1_filtered_4FGL_J1215.0+1656_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/439896/ft2_4FGL_J1215.0+1656_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/439896/ltcube_510969601_511228801_4FGL_J1215.0+1656_daily_bin1048.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/439896/ft2_4FGL_J1215.0+1656_daily_bin1048.fits
.....................!
real 14.75
user 14.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439896/ft1_filtered_4FGL_J1215.0+1656_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/439896/ft2_4FGL_J1215.0+1656_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/439896/ltcube_510969601_511228801_4FGL_J1215.0+1656_daily_bin1048.fits outfile=/scratch/kocevski/439896/expmap_510969601_511228801_4FGL_J1215.0+1656_daily_bin1048.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/439896/ltcube_510969601_511228801_4FGL_J1215.0+1656_daily_bin1048.fits
.....................!
real 196.43
user 186.60
sys 5.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/439896/ft1_filtered_4FGL_J1215.0+1656_daily_bin1048.fits scfile=/scratch/kocevski/439896/ft2_4FGL_J1215.0+1656_daily_bin1048.fits outfile=/scratch/kocevski/439896/cmap_510969601_511228801_4FGL_J1215.0+1656_daily_bin1048.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.63
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.065       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.487       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13553E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0196       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14635E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3717       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1477       1.0000         .10000E-03   10000.    
    16 'norm      '    .25791       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.9894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.832       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.767       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.098       1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.739       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92890       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0788       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=   5659.368     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3092 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.053        36.575       -.13507E-04    .25217E-04
   2  Prefactor     23.309        17.888       -.24959E-05    .15477E-03
   3  Prefactor     .10000E-03    9.1627        .87017E-06** at limit **
   4  Prefactor     .10000E-03    .92954       -.59941E-06** at limit **
   5  Prefactor     .10000E-03    47.985       -.45957E-04** at limit **
   6  Prefactor     16.489        12.821        .98172E-05    .29882E-03
   7  Prefactor     .10001E-03    8.0291       -.45750E-06** at limit **
   8  Prefactor     .10000E-03    4.6416       -.50045E-06** at limit **
   9  Prefactor     27.877        97.472       -.26523E-03    .39122E-04
  10  Prefactor     5.8888        4.4717       -.87043E-06    .14080E-03
  11  Prefactor     2.0177        4.2968       -.21403E-06   -.49436E-03
  12  Prefactor     .10000E-03    109.56       -.35657E-04** at limit **
  13  Prefactor     2.3713        2.2857       -.50204E-06   -.19639E-03
  14  Prefactor     8.2170        23.208       -.14797E-05    .18705E-05
  15  Prefactor     4.1475        6.0795       -.24069E-05   -.28367E-03
  16  norm          .25789        .18979       -.17122E-06   -.28786E-03
  17  Prefactor     .10000E-03    54.970        .68177E-04** at limit **
  18  norm          9.9887        5.4306       -.16251E-05    .84482E-04
  19  Prefactor     13.832        9.3502       -.31466E-06    .36232E-04
  20  Prefactor     .10000E-03    7.3543        .11253E-05** at limit **
  21  Prefactor     33.764        42.189       -.36141E-05    .67462E-05
  22  Prefactor     .10000E-03    1.7151       -.81179E-07** at limit **
  23  Prefactor     18.096        14.615       -.18359E-05    .73061E-05
  24  Prefactor     36.736        18.008       -.12405E-05    .35927E-04
  25  Normalizat    .92922        .20602        .12238E-04    .19681E-03
  26  Prefactor     1.0786        .19373        .30436E-05    .46918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0528
  Prefactor  = 23.3086
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.4888
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 27.8772
  Prefactor  = 5.88878
  Prefactor  = 2.01773
  Prefactor  = 0.0001
  Prefactor  = 2.37134
  Prefactor  = 8.21696
  Prefactor  = 4.1475
  norm       = 0.257892
  Prefactor  = 0.0001
  norm       = 9.98869
  Prefactor  = 13.8318
  Prefactor  = 0.0001
  Prefactor  = 33.7638
  Prefactor  = 0.0001
  Prefactor  = 18.0962
  Prefactor  = 36.7362
  Normalizat = 0.929219
  Prefactor  = 1.07856
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.368     FROM HESSE     STATUS=OK           460 CALLS     3552 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.053        36.652        .91730E-04   -1.4835    
   2  Prefactor     23.309        17.783        .82982E-04   -1.4742    
   3  Prefactor     .10000E-03    9.3126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5253        .13939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.489        12.829        .98639E-04   -1.4896    
   7  Prefactor     .10001E-03    8.0459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8150        .31521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.877        97.623        .75667E-04   -1.4651    
  10  Prefactor     5.8888        4.3530        .10833E-03   -1.5223    
  11  Prefactor     2.0177        4.1659        .17859E-03   -1.5424    
  12  Prefactor     .10000E-03    112.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3713        2.2786        .10762E-03   -1.5400    
  14  Prefactor     8.2170        23.240        .13980E-03   -1.5135    
  15  Prefactor     4.1475        6.0553        .19791E-03   -1.5301    
  16  norm          .25789        .18774        .26713E-04   -1.5606    
  17  Prefactor     .10000E-03    54.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.9887        5.4206        .11812E-03   -1.5076    
  19  Prefactor     13.832        9.3493        .10770E-03   -1.4964    
  20  Prefactor     .10000E-03    7.3607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.764        42.188        .68960E-04   -1.4545    
  22  Prefactor     .10000E-03    1.7178        .96216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.096        14.612        .94147E-04   -1.4857    
  24  Prefactor     36.736        18.010        .66120E-04   -1.4495    
  25  Normalizat    .92922        .24317        .27023E-03   -.95441    
  26  Prefactor     1.0786        .22990        .25353E-03   -.90155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7183e-09
Minuit parameter uncertainties:
  1  36.6953
  2  17.7866
  3  0.000125364
  4  7.50484e-05
  5  3.20022e-05
  6  12.831
  7  0.000503649
  8  0.000105083
  9  98.1892
  10  4.35323
  11  4.16651
  12  0.000226541
  13  2.27865
  14  23.2653
  15  6.05615
  16  0.187739
  17  4.30055e-05
  18  5.42091
  19  9.35033
  20  1.67268e-05
  21  42.2252
  22  9.48508e-06
  23  14.6153
  24  18.0122
  25  0.243462
  26  0.230108
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  2.018e+00  4.167e+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:  1.079e+00  2.301e-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:  9.292e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/439896/likelihoodResults_510969601_511228801_4FGL_J1215.0+1656_daily_bin1048.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) = 5657.45713392
delta logL = 1.91067782855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5657.26884156
delta logL = 2.09897018887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20697       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6259       1.0000          .0000       10.000    
     3 'Normalizat'    .80515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1598       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=   5657.269     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20688        1.6446        .40126E-02    .13400E-02
   2  Index         4.6263        2.5373        .93354E-01    .15088E-03
   3  Normalizat    .80503        .58791E-01    .64992E-01    .18991E-04
   4  Prefactor     1.1599        .58859E-01    .55473E-01    .49464E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.206876
  Index      = 4.62633
  Normalizat = 0.805028
  Prefactor  = 1.15995
 **********
 **   18 **HESSE 
 **********

 FCN=   5657.269     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20688        3.0388        .18024E-04   -1.5617    
   2  Index         4.6263        3.6320        .37497E-02   -.74804E-01
   3  Normalizat    .80503        .21522        .28751E-03   -.99882    
   4  Prefactor     1.1599        .21399        .24528E-03   -.87573    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47022e-07
Minuit parameter uncertainties:
  1  1.58546
  2  4.06883
  3  0.215446
  4  0.214151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439896': 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) = 5657.26884125
delta logL = 2.09897049932

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.050e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.90
Ra Dec: 183.774 16.937
Photon Index (Free Index): 4.63 +/- 4.07
Photon Flux (Free Index): 1.17e-07 +/- 6.41e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/439896/cmap_HighResolution_510969601_511228801_4FGL_J1215.0+1656_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='2.10e+00', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-05 05:45:22.050010', photon_index_error2='4.07', photon_index2='4.63', ts='0.36', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.16e-05', EG='0.93', time_epoch_completed='1630845922.05', return_code='0', job_id='439896', GAL2='1.16', EG2='0.81', return_code2='102', photon_flux_error2='6.41e-08', ts2='4.90', photon_index='2.41' WHERE bin_id='1048' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:45:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 439896: <4FGL_J1215.0+1656_daily_bin1048> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1048 183.774 16.9372 510969601 511228801 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 :                                   718.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

