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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin694
RA = 184.061, Dec = 5.6248
tmin = 419212801, tmax = 419472001
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='446818', job_status='RUN', time_executed='2021-09-05 05:53:54.109883', time_epoch_executed='1630846434.11' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446818/ft1_4FGL_J1216.2+0537_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446818/ft1_4FGL_J1216.2+0537_daily_bin694.fits outfile=/scratch/kocevski/446818/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin694.fits ra=184.061 dec=5.6248 rad=12.0 tmin=419212801.0 tmax=419472001.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.41
user 5.20
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.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/446818/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin694.fits evtable="EVENTS" outfile="/scratch/kocevski/446818/ft1_filtered_4FGL_J1216.2+0537_daily_bin694.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.62
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446818/ft1_filtered_4FGL_J1216.2+0537_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/446818/ltcube_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.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/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits
.....................!
real 12.16
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446818/ft1_filtered_4FGL_J1216.2+0537_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/446818/ltcube_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.fits outfile=/scratch/kocevski/446818/expmap_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.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/446818/ltcube_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.fits
.....................!
real 191.24
user 185.64
sys 4.33

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 191 point sources and 0 extended sources

Setting source of interest to:
4FGL J1216.2+0537 @ 184.061 5.6248

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/446818/ft1_filtered_4FGL_J1216.2+0537_daily_bin694.fits scfile=/scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits outfile=/scratch/kocevski/446818/cmap_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.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=184.061 yref=5.6248 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446818/ft1_filtered_4FGL_J1216.2+0537_daily_bin694.fits scfile=/scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits outfile=/scratch/kocevski/446818/cmap_HighResolution_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.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=184.061 yref=5.6248 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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/446818/ft1_filtered_4FGL_J1216.2+0537_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446818/Model_4FGL_J1216.2+0537_daily_bin694.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/446818/ft1_filtered_4FGL_J1216.2+0537_daily_bin694.fits.....................!
real 44.21
user 42.84
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/446818/ft1_filtered_4FGL_J1216.2+0537_daily_bin694.fits', '/scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits', expMap='/scratch/kocevski/446818/expmap_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.fits', expCube='/scratch/kocevski/446818/ltcube_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/446818/Model_4FGL_J1216.2+0537_daily_bin694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1216.2+0537'

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.062e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/446818/ft1_filtered_4FGL_J1216.2+0537_daily_bin694.fits
Spacecraft file(s): /scratch/kocevski/446818/ft2_4FGL_J1216.2+0537_daily_bin694.fits
Exposure map: /scratch/kocevski/446818/expmap_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.fits
Exposure cube: /scratch/kocevski/446818/ltcube_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/446818/Model_4FGL_J1216.2+0537_daily_bin694.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) = 4227.33474062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.279       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7783       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1195       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.328       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8757       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1198       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7209       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.009       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7342       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.749       1.0000         .10000E-03   10000.    
    23 'norm      '    1.9015       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.367       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.6325       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .42985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4227.331     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3867 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3452       -.16723E-07** at limit **
   2  Prefactor     .10000E-03    9.0035        .52336E-06** at limit **
   3  Prefactor     37.275        61.128        .65058E-06   -.47293E-06
   4  Prefactor     .10000E-03    3.1526       -.89031E-10** at limit **
   5  Prefactor     5.7771        7.6270       -.15605E-07   -.19796E-04
   6  Prefactor     .10000E-03    9.9020       -.12410E-05** at limit **
   7  Prefactor     .10000E-03    55.936       -.33596E-05** at limit **
   8  Prefactor     .10000E-03    26.640        .17986E-05** at limit **
   9  Prefactor     .10000E-03    69.300        .12870E-05** at limit **
  10  Prefactor     .10000E-03    12.113        .17094E-05** at limit **
  11  Prefactor     1.1199        3.2507        .22768E-06   -.11366E-04
  12  Prefactor     35.326        29.950       -.60981E-06   -.26679E-05
  13  Prefactor     5.8804        27.211       -.98740E-06   -.16678E-04
  14  norm          9.1190        5.6329        .25581E-06    .16807E-04
  15  norm          2.7207        4.8478        .28747E-05    .34421E-05
  16  Prefactor     .10000E-03    15.609       -.67189E-06** at limit **
  17  norm          .10000E-03    58.262       -.33884E-05** at limit **
  18  Prefactor     .10000E-03    77.969        .70390E-05** at limit **
  19  norm          1.2148        .95412       -.17015E-06    .35487E-03
  20  Prefactor     49.011        24.035       -.32384E-06   -.40481E-04
  21  Prefactor     3.7303        149.03        .33234E-05    .34444E-05
  22  Prefactor     26.749        18.870        .17918E-06    .25442E-05
  23  norm          1.9019        2.2541       -.65612E-07   -.23306E-04
  24  Prefactor     .10000E-03    5.8785       -.31365E-08** at limit **
  25  Prefactor     44.372        46.491       -.63647E-06   -.42831E-05
  26  Prefactor     .10000E-03    23.231        .71361E-06** at limit **
  27  norm          .10000E-03    16.740       -.13330E-05** at limit **
  28  Prefactor     .10000E-03    34.878       -.50484E-06** at limit **
  29  Normalizat    1.6326        .25654       -.10050E-05    .79210E-04
  30  Prefactor     .42972        .19995        .84917E-06    .24241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.2747
  Prefactor  = 0.0001
  Prefactor  = 5.77709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.11988
  Prefactor  = 35.3264
  Prefactor  = 5.88041
  norm       = 9.11898
  norm       = 2.7207
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21479
  Prefactor  = 49.0114
  Prefactor  = 3.73035
  Prefactor  = 26.7492
  norm       = 1.90191
  Prefactor  = 0.0001
  Prefactor  = 44.3722
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.6326
  Prefactor  = 0.429722
 **********
 **   18 **HESSE 
 **********

 FCN=   4227.331     FROM HESSE     STATUS=OK           580 CALLS     4447 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3486        .73642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.275        61.138        .65642E-04   -1.4486    
   4  Prefactor     .10000E-03    3.1551        .11275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7771        7.6213        .16708E-03   -1.5227    
   6  Prefactor     .10000E-03    9.9342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    57.242        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    69.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1199        3.2208        .19176E-03   -1.5496    
  12  Prefactor     35.326        29.948        .33712E-03   -1.4519    
  13  Prefactor     5.8804        26.454        .16567E-03   -1.5223    
  14  norm          9.1190        5.5844        .94016E-04   -1.5104    
  15  norm          2.7207        4.8573        .83672E-03   -1.5378    
  16  Prefactor     .10000E-03    15.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    58.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    77.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2148        .92454        .46340E-04   -1.5488    
  20  Prefactor     49.011        23.547        .57281E-04   -1.4307    
  21  Prefactor     3.7303        143.24        .20895E-03   -1.5322    
  22  Prefactor     26.749        18.800        .77458E-04   -1.4673    
  23  norm          1.9019        2.2210        .97357E-04   -1.5432    
  24  Prefactor     .10000E-03    5.8948        .15389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     44.372        46.449        .60190E-04   -1.4375    
  26  Prefactor     .10000E-03    23.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    16.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    35.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.6326        .28882        .23621E-03   -.74117    
  30  Prefactor     .42972        .22118        .34629E-03   -1.1532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25111e-11
Minuit parameter uncertainties:
  1  6.59333e-08
  2  3.72904e-06
  3  61.2406
  4  1.28598e-07
  5  7.62262
  6  6.94241e-06
  7  0.000181272
  8  2.4524e-05
  9  3.27891e-05
  10  1.30284e-05
  11  3.22134
  12  29.9611
  13  24.963
  14  5.5847
  15  4.858
  16  8.4111e-06
  17  0.000120164
  18  0.000153099
  19  0.924546
  20  23.5516
  21  46.3506
  22  18.8042
  23  2.22108
  24  6.7609e-07
  25  46.4864
  26  7.97467e-06
  27  1.03415e-05
  28  6.38035e-06
  29  0.289121
  30  0.221617
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  3.533e+01  2.996e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  4.297e-01  2.216e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.633e+00  2.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 184.061 5.625
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 2.03e-05

TS (Fixed Index): 3.59
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446818/likelihoodResults_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.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) = 4227.32520679
delta logL = 0.00535322012365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4227.31904131
delta logL = 0.0115186939192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.253       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9259       1.0000          .0000       10.000    
     3 'Normalizat'    1.6356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42845       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   4227.319     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      272 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.252        48.434        .63179E-04    .94399E-04
   2  Index         1.9259        .63433        .55132E-02    .40133E-04
   3  Normalizat    1.6359        .27182        .23603E-03   -.10336E-03
   4  Prefactor     .42824        .21790        .34685E-03   -.81910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.2516
  Index      = 1.92587
  Normalizat = 1.63587
  Prefactor  = 0.428241
 **********
 **   18 **HESSE 
 **********

 FCN=   4227.319     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.252        46.471        .12636E-04   -1.4438    
   2  Index         1.9259        .60871        .22053E-03   -.66216    
   3  Normalizat    1.6359        .27181        .47207E-04   -.74029    
   4  Prefactor     .42824        .21795        .13874E-04   -1.1539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97072e-11
Minuit parameter uncertainties:
  1  46.5132
  2  0.61115
  3  0.272056
  4  0.218376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446818': 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) = 4227.31904083
delta logL = 0.0115191736513

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  4.025e+01  4.651e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.926e+00  6.112e-01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  4.282e-01  2.184e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.636e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.61
Ra Dec: 184.061 5.625
Photon Index (Free Index): 1.93 +/- 0.61
Photon Flux (Free Index): 3.30e-08 +/- 3.52e-08
Energy Flux (Free Index): 2.76e-05 +/- 3.56e-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/446818/cmap_HighResolution_419212801_419472001_4FGL_J1216.2+0537_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='2.76e-05', photon_flux_error='3.08e-08', dlogl='1.15e-02', energy_flux='2.39e-05', photon_flux2='3.30e-08', job_status='DONE', time_completed='2021-09-05 06:07:24.864641', photon_index_error2='0.61', photon_index2='1.93', ts='3.59', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='3.56e-05', EG='1.63', time_epoch_completed='1630847244.86', return_code='0', job_id='446818', GAL2='0.43', EG2='1.64', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='3.52e-08', ts2='3.61', photon_index='2.02' WHERE bin_id='694' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:07:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 446818: <4FGL_J1216.2+0537_daily_bin694> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin694> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:50:54 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:50:55 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:50:55 2021
Terminated at Sun Sep  5 06:07:25 2021
Results reported at Sun Sep  5 06:07:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin694 184.061 5.6248 419212801 419472001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1216.2+0537 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   716.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            991 sec.

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

