/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 31 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 = 7500
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1216.2+0537_daily_bin763
RA = 184.061, Dec = 5.6248
tmin = 437097601, tmax = 437356801
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='446927', job_status='RUN', time_executed='2021-09-05 05:51:53.979089', time_epoch_executed='1630846313.98' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446927/ft1_4FGL_J1216.2+0537_daily_bin763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446927/ft2_4FGL_J1216.2+0537_daily_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446927/ft1_4FGL_J1216.2+0537_daily_bin763.fits outfile=/scratch/kocevski/446927/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin763.fits ra=184.061 dec=5.6248 rad=12.0 tmin=437097601.0 tmax=437356801.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 5.08
user 4.83
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446927/ft1_filtered_4FGL_J1216.2+0537_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/446927/ft2_4FGL_J1216.2+0537_daily_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/446927/ltcube_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.fits outfile=/scratch/kocevski/446927/expmap_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.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/446927/ltcube_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.fits
.....................!
real 190.90
user 185.91
sys 4.47

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/446927/ft1_filtered_4FGL_J1216.2+0537_daily_bin763.fits scfile=/scratch/kocevski/446927/ft2_4FGL_J1216.2+0537_daily_bin763.fits outfile=/scratch/kocevski/446927/cmap_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446927/ft1_filtered_4FGL_J1216.2+0537_daily_bin763.fits scfile=/scratch/kocevski/446927/ft2_4FGL_J1216.2+0537_daily_bin763.fits outfile=/scratch/kocevski/446927/cmap_HighResolution_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.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.64
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/446927/ft1_filtered_4FGL_J1216.2+0537_daily_bin763.fits', '/scratch/kocevski/446927/ft2_4FGL_J1216.2+0537_daily_bin763.fits', expMap='/scratch/kocevski/446927/expmap_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.fits', expCube='/scratch/kocevski/446927/ltcube_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/446927/Model_4FGL_J1216.2+0537_daily_bin763.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/446927/ft1_filtered_4FGL_J1216.2+0537_daily_bin763.fits
Spacecraft file(s): /scratch/kocevski/446927/ft2_4FGL_J1216.2+0537_daily_bin763.fits
Exposure map: /scratch/kocevski/446927/expmap_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.fits
Exposure cube: /scratch/kocevski/446927/ltcube_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/446927/Model_4FGL_J1216.2+0537_daily_bin763.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) = 5127.38339534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0884       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.845       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6756       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.158       1.0000         .10000E-03   10000.    
    14 'norm      '    .77848       1.0000         .10000E-03   10000.    
    15 'norm      '    .31940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5055       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.9255       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.479       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5120       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78420       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=   5127.373     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3904 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5946        5.8309       -.58768E-06   -.12738E-04
   2  Prefactor     60.279        41.627        .65869E-06    .12241E-04
   3  Prefactor     .10000E-03    64.328       -.29181E-05** at limit **
   4  Prefactor     .10000E-03    11.542       -.53002E-06** at limit **
   5  Prefactor     2.0802        12.722        .58048E-06    .67095E-05
   6  Prefactor     18.830        24.063        .10237E-06    .33223E-05
   7  Prefactor     1.6556        104.15        .19983E-05    .84226E-06
   8  Prefactor     .10000E-03    51.670        .23719E-05** at limit **
   9  Prefactor     .10000E-03    27.322       -.54230E-06** at limit **
  10  Prefactor     .10000E-03    28.374       -.28886E-06** at limit **
  11  Prefactor     2.8334        4.6003        .27215E-05    .50988E-05
  12  Prefactor     .10000E-03    16.678        .38002E-06** at limit **
  13  Prefactor     14.167        15.907        .56849E-07    .34211E-04
  14  norm          .77598        2.9647        .16524E-06   -.40820E-04
  15  norm          .29266        2.8077       -.15544E-06    .58039E-04
  16  Prefactor     .10000E-03    32.088        .14861E-05** at limit **
  17  norm          .10000E-03    136.62        .82530E-05** at limit **
  18  Prefactor     .10000E-03    98.245       -.59496E-05** at limit **
  19  norm          1.5062        .76259       -.47188E-08   -.14435E-03
  20  Prefactor     .10000E-03    3.4458       -.18202E-07** at limit **
  21  Prefactor     .10000E-03    11.506       -.12010E-06** at limit **
  22  Prefactor     .10000E-03    3.3511       -.20686E-07** at limit **
  23  norm          6.9256        2.6432        .31865E-07    .28735E-04
  24  Prefactor     .10000E-03    6.3930       -.57865E-07** at limit **
  25  Prefactor     .10000E-03    28.059       -.30968E-06** at limit **
  26  Prefactor     19.479        41.276        .52819E-06    .10948E-04
  27  norm          .10000E-03    11.134        .49128E-06** at limit **
  28  Prefactor     .10000E-03    24.709       -.79271E-06** at limit **
  29  Normalizat    1.5125        .25272       -.76764E-06    .68449E-04
  30  Prefactor     .78400        .19688        .43006E-07    .35497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.59459
  Prefactor  = 60.2793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.08015
  Prefactor  = 18.8304
  Prefactor  = 1.65564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83344
  Prefactor  = 0.0001
  Prefactor  = 14.1674
  norm       = 0.775984
  norm       = 0.292664
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.92559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4788
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51253
  Prefactor  = 0.783998
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.373     FROM HESSE     STATUS=OK           582 CALLS     4486 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5946        5.8410        .12919E-03   -1.5088    
   2  Prefactor     60.279        41.566        .51675E-04   -1.4154    
   3  Prefactor     .10000E-03    64.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0802        12.624        .28568E-03   -1.5420    
   6  Prefactor     18.830        24.224        .92262E-04   -1.4840    
   7  Prefactor     1.6556        104.93        .32554E-03   -1.5451    
   8  Prefactor     .10000E-03    51.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8334        4.6089        .93288E-03   -1.5371    
  12  Prefactor     .10000E-03    16.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.167        15.228        .10645E-03   -1.4955    
  14  norm          .77598        2.7853        .19951E-03   -1.5532    
  15  norm          .29266        22.927        .20816E-02   -1.5600    
  16  Prefactor     .10000E-03    32.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    136.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    98.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5062        .75844        .39460E-04   -1.5463    
  20  Prefactor     .10000E-03    3.4470        .12982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.3553        .12802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.9256        2.6378        .67120E-04   -1.5182    
  24  Prefactor     .10000E-03    6.4624        .17680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.479        41.275        .90751E-04   -1.4825    
  27  norm          .10000E-03    11.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    25.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.5125        .30134        .26777E-03   -.77427    
  30  Prefactor     .78400        .23177        .29280E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98316e-11
Minuit parameter uncertainties:
  1  5.84134
  2  41.5862
  3  2.83236e-05
  4  1.01909e-05
  5  10.2519
  6  24.2369
  7  26.4087
  8  7.60186e-07
  9  5.24991e-06
  10  2.73227e-05
  11  4.60946
  12  1.21185e-06
  13  15.2326
  14  2.78575
  15  5.18185
  16  2.92834e-06
  17  1.00866e-05
  18  7.34386e-05
  19  0.75844
  20  1.01476e-06
  21  3.94239e-06
  22  8.59841e-07
  23  2.63787
  24  4.5031e-06
  25  9.61204e-06
  26  41.3354
  27  7.70031e-07
  28  2.16386e-05
  29  0.301701
  30  0.232054
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.212e-06  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:  7.840e-01  2.321e-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.513e+00  3.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 7.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446927/likelihoodResults_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.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) = 5127.37362356
delta logL = -0.000284938049845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5127.37333876
delta logL = -1.44260411616e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1152       1.0000          .0000       10.000    
     3 'Normalizat'    1.5125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78401       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.

 FCN=   5127.373     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    181.95        .90712E-02** at limit **
   2  Index         2.1090        8.3052        .50000        .30920E-05
   3  Normalizat    1.5125        .20780E-01    .60549E-01    .21767E-04
   4  Prefactor     .78400        .17101E-01    .66185E-01    .32966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.109
  Normalizat = 1.51253
  Prefactor  = 0.783999
 **********
 **   18 **HESSE 
 **********

 FCN=   5127.373     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2157.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1090        6.3168        .50000       -.61652    
   3  Normalizat    1.5125        .92632E-01    .26777E-03   -.77427    
   4  Prefactor     .78400        .76148E-01    .29280E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59842e-09
Minuit parameter uncertainties:
  1  9.4098e-05
  2  48.9593
  3  0.0926427
  4  0.0761581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446927': 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) = 5127.37333869
delta logL = -7.14035195415e-08

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  9.410e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.109e+00  4.896e+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:  7.840e-01  7.616e-02  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.513e+00  9.264e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.061 5.625

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/446927/cmap_HighResolution_437097601_437356801_4FGL_J1216.2+0537_daily_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-09-05 06:05:54.246325', job_id='446927', GAL2='0.78', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630847154.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-7.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='763' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:05:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 446927: <4FGL_J1216.2+0537_daily_bin763> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin763 184.061 5.6248 437097601 437356801 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 :                                   786.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

