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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1002
RA = 183.774, Dec = 16.9372
tmin = 499046401, tmax = 499305601
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='438850', job_status='RUN', time_executed='2021-09-05 05:29:57.529122', time_epoch_executed='1630844997.53' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438850/ft1_4FGL_J1215.0+1656_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438850/ft2_4FGL_J1215.0+1656_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438850/ft1_4FGL_J1215.0+1656_daily_bin1002.fits outfile=/scratch/kocevski/438850/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1002.fits ra=183.774 dec=16.9372 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.23
user 4.03
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438850/ft1_filtered_4FGL_J1215.0+1656_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/438850/ft2_4FGL_J1215.0+1656_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/438850/ltcube_499046401_499305601_4FGL_J1215.0+1656_daily_bin1002.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/438850/ft2_4FGL_J1215.0+1656_daily_bin1002.fits
.....................!
real 12.04
user 11.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438850/ft1_filtered_4FGL_J1215.0+1656_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/438850/ft2_4FGL_J1215.0+1656_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/438850/ltcube_499046401_499305601_4FGL_J1215.0+1656_daily_bin1002.fits outfile=/scratch/kocevski/438850/expmap_499046401_499305601_4FGL_J1215.0+1656_daily_bin1002.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/438850/ltcube_499046401_499305601_4FGL_J1215.0+1656_daily_bin1002.fits
.....................!
real 192.45
user 188.08
sys 3.98

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/438850/ft1_filtered_4FGL_J1215.0+1656_daily_bin1002.fits scfile=/scratch/kocevski/438850/ft2_4FGL_J1215.0+1656_daily_bin1002.fits outfile=/scratch/kocevski/438850/cmap_499046401_499305601_4FGL_J1215.0+1656_daily_bin1002.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.60
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438850/ft1_filtered_4FGL_J1215.0+1656_daily_bin1002.fits scfile=/scratch/kocevski/438850/ft2_4FGL_J1215.0+1656_daily_bin1002.fits outfile=/scratch/kocevski/438850/cmap_HighResolution_499046401_499305601_4FGL_J1215.0+1656_daily_bin1002.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.080       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.167       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91071       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7549       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2750       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21194E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .34661E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7194       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.189       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.001       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5918       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.014       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92420       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4467.618     FROM MIGRAD    STATUS=CONVERGED   1103 CALLS     3647 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.016        50.361        .91694E-04    .17234E-04
   2  Prefactor     12.145        31.115        .11484E-03    .18809E-05
   3  Prefactor     .10000E-03    31.015        .36285E-03** at limit **
   4  Prefactor     .91146        2.9380        .16404E-03   -.31811E-04
   5  Prefactor     .10000E-03    84.064        .18142E-02** at limit **
   6  Prefactor     .10000E-03    2.7886        .10899E-02** at limit **
   7  Prefactor     10.678        19.556        .12259E-03    .30603E-05
   8  Prefactor     .10000E-03    1.5852        .82006E-03** at limit **
   9  Prefactor     .10000E-03    42.228        .18142E-02** at limit **
  10  Prefactor     2.7548        2.8924        .10968E-03   -.53175E-04
  11  Prefactor     3.2747        3.2453        .11272E-03   -.59807E-04
  12  Prefactor     .10000E-03    13.839        .18142E-02** at limit **
  13  Prefactor     1.6764        2.2807        .11524E-03   -.34133E-04
  14  Prefactor     .10000E-03    65.457        .12865    ** at limit **
  15  Prefactor     .10000E-03    5.4070        .15042E-02** at limit **
  16  norm          .34430E-01    .41974        .50378E-03    .77718E-02
  17  Prefactor     7.8785        881.70        .14433E-03    .17329E-05
  18  norm          .10000E-03    1.7113        .85282E-03** at limit **
  19  Prefactor     27.189        13.818        .76830E-04   -.26783E-04
  20  Prefactor     .10000E-03    13.746        .18142E-02** at limit **
  21  Prefactor     34.008        60.435        .68723E-04   -.62863E-05
  22  Prefactor     6.5906        9.8339        .15630E-03   -.22912E-04
  23  Prefactor     .10000E-03    22.790        .18142E-02** at limit **
  24  Prefactor     13.014        21.726        .11103E-03   -.15256E-04
  25  Normalizat    1.0401        .25314        .24791E-03   -.54938E-04
  26  Prefactor     .92389        .23085        .24905E-03   -.75135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0159
  Prefactor  = 12.1447
  Prefactor  = 0.000100001
  Prefactor  = 0.911461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.7548
  Prefactor  = 3.27471
  Prefactor  = 0.0001
  Prefactor  = 1.67641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0344302
  Prefactor  = 7.87846
  norm       = 0.0001
  Prefactor  = 27.1892
  Prefactor  = 0.0001
  Prefactor  = 34.0079
  Prefactor  = 6.59062
  Prefactor  = 0.0001
  Prefactor  = 13.0137
  Normalizat = 1.04006
  Prefactor  = 0.923888
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.618     FROM HESSE     STATUS=OK           442 CALLS     4089 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.016        50.357        .36677E-05   -1.4836    
   2  Prefactor     12.145        31.077        .45936E-05   -1.5011    
   3  Prefactor     .10000E-03    31.016        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91146        2.9335        .65616E-05   -1.5517    
   5  Prefactor     .10000E-03    84.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7886        .21797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.678        19.550        .49036E-05   -1.5054    
   8  Prefactor     .10000E-03    1.5852        .16401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.228        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7548        2.8921        .43872E-05   -1.5376    
  11  Prefactor     3.2747        3.2450        .45089E-05   -1.5346    
  12  Prefactor     .10000E-03    13.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6764        2.2807        .46097E-05   -1.5449    
  14  Prefactor     .10000E-03    64.182        .13013       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4096        .30083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .34430E-01    .41692        .10076E-03   -1.5671    
  17  Prefactor     7.8785        877.28        .57732E-05   -1.5147    
  18  norm          .10000E-03    1.7114        .17056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.189        13.816        .30732E-05   -1.4665    
  20  Prefactor     .10000E-03    13.747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.008        60.414        .27489E-05   -1.4541    
  22  Prefactor     6.5906        9.8335        .62521E-05   -1.5194    
  23  Prefactor     .10000E-03    22.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.014        21.721        .44414E-05   -1.4986    
  25  Normalizat    1.0401        .25285        .99164E-05   -.91700    
  26  Prefactor     .92389        .23099        .99622E-05   -.95311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44931e-11
Minuit parameter uncertainties:
  1  50.47
  2  31.118
  3  0.000259086
  4  2.93398
  5  4.20086e-05
  6  2.6392e-06
  7  19.5614
  8  3.88339e-06
  9  4.5908e-05
  10  2.89229
  11  3.24514
  12  2.00662e-05
  13  2.28083
  14  0.000181665
  15  9.13141e-06
  16  0.239276
  17  168.875
  18  1.67246e-06
  19  13.8181
  20  1.05387e-06
  21  60.5226
  22  9.83591
  23  1.23832e-05
  24  21.7346
  25  0.253139
  26  0.231235
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.239e-01  2.312e-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.040e+00  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.01
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/438850/likelihoodResults_499046401_499305601_4FGL_J1215.0+1656_daily_bin1002.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4467.61446649
delta logL = 0.00346380510837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4467.61364621
delta logL = 0.00428409243887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4025       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3331       1.0000          .0000       10.000    
     3 'Normalizat'    1.0431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4467.614     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      231 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4022        3.6021        .11625E-03    .14668E-02
   2  Index         2.3331        .83686        .93828E-02    .17279E-03
   3  Normalizat    1.0432        .23458        .24758E-03   -.13252E-03
   4  Prefactor     .92205        .22238        .24928E-03   -.18158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40218
  Index      = 2.33306
  Normalizat = 1.04319
  Prefactor  = 0.92205
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.614     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4022        3.5331        .46501E-05   -1.5339    
   2  Index         2.3331        .82053        .37531E-03   -.56260    
   3  Normalizat    1.0432        .23463        .99033E-05   -.91597    
   4  Prefactor     .92205        .22247        .49856E-04   -.95375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35665e-09
Minuit parameter uncertainties:
  1  3.53333
  2  0.825765
  3  0.234868
  4  0.222695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438850': 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) = 4467.61364615
delta logL = 0.00428414563976

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.220e-01  2.227e-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.043e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 183.774 16.937
Photon Index (Free Index): 2.33 +/- 0.83
Photon Flux (Free Index): 3.80e-08 +/- 4.82e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.46e-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/438850/cmap_HighResolution_499046401_499305601_4FGL_J1215.0+1656_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='1.37e-05', photon_flux_error='4.04e-08', dlogl='4.28e-03', energy_flux='1.32e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-05 05:40:49.764177', photon_index_error2='0.83', photon_index2='2.33', ts='2.01', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.46e-05', EG='1.04', time_epoch_completed='1630845649.76', return_code='0', job_id='438850', GAL2='0.92', EG2='1.04', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.82e-08', ts2='2.02', photon_index='2.41' WHERE bin_id='1002' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:40:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 438850: <4FGL_J1215.0+1656_daily_bin1002> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1002 183.774 16.9372 499046401 499305601 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 :                                   645.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.96 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.

