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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin635
RA = 184.061, Dec = 5.6248
tmin = 403920001, tmax = 404179201
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='446721', job_status='RUN', time_executed='2021-09-05 05:51:00.211928', time_epoch_executed='1630846260.21' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446721

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446721/ft1_4FGL_J1216.2+0537_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446721/ft2_4FGL_J1216.2+0537_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446721/ft1_4FGL_J1216.2+0537_daily_bin635.fits outfile=/scratch/kocevski/446721/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin635.fits ra=184.061 dec=5.6248 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.14
user 9.65
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446721/ft1_filtered_4FGL_J1216.2+0537_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/446721/ft2_4FGL_J1216.2+0537_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/446721/ltcube_403920001_404179201_4FGL_J1216.2+0537_daily_bin635.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/446721/ft2_4FGL_J1216.2+0537_daily_bin635.fits
.....................!
real 10.10
user 9.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446721/ft1_filtered_4FGL_J1216.2+0537_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/446721/ft2_4FGL_J1216.2+0537_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/446721/ltcube_403920001_404179201_4FGL_J1216.2+0537_daily_bin635.fits outfile=/scratch/kocevski/446721/expmap_403920001_404179201_4FGL_J1216.2+0537_daily_bin635.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/446721/ltcube_403920001_404179201_4FGL_J1216.2+0537_daily_bin635.fits
.....................!
real 194.05
user 186.75
sys 4.71

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/446721/ft1_filtered_4FGL_J1216.2+0537_daily_bin635.fits scfile=/scratch/kocevski/446721/ft2_4FGL_J1216.2+0537_daily_bin635.fits outfile=/scratch/kocevski/446721/cmap_403920001_404179201_4FGL_J1216.2+0537_daily_bin635.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446721/ft1_filtered_4FGL_J1216.2+0537_daily_bin635.fits scfile=/scratch/kocevski/446721/ft2_4FGL_J1216.2+0537_daily_bin635.fits outfile=/scratch/kocevski/446721/cmap_HighResolution_403920001_404179201_4FGL_J1216.2+0537_daily_bin635.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    85.595       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12543E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    104.42       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.638       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.487       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.900       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.382       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11950E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.1917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.4630       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11391E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.4440       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7659       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .21520E-06   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=   1053.332     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     4510 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4673        .17113E-06** at limit **
   2  Prefactor     85.647        110.25        .39597E-04   -.19830E-04
   3  Prefactor     .10000E-03    214.06        .77185E-04** at limit **
   4  Prefactor     .10000E-03    40.449       -.47058E-05** at limit **
   5  Prefactor     .10001E-03    23.955        .12956E-05** at limit **
   6  Prefactor     .10000E-03    29.677       -.47999E-05** at limit **
   7  Prefactor     .10000E-03    27.885        .10368E-04** at limit **
   8  Prefactor     104.40        225.07       -.21689E-04   -.15241E-05
   9  Prefactor     20.682        181.13        .71713E-04   -.13831E-04
  10  Prefactor     23.505        69.950        .56969E-05   -.15258E-04
  11  Prefactor     14.906        9.6494       -.14566E-05   -.53078E-04
  12  Prefactor     .10000E-03    43.485        .13379E-04** at limit **
  13  Prefactor     22.409        33.590       -.70876E-05   -.15590E-04
  14  norm          .10000E-03    7.4274        .26419E-06** at limit **
  15  norm          .10000E-03    22.367       -.64124E-05** at limit **
  16  Prefactor     .10000E-03    149.09        .51334E-04** at limit **
  17  norm          .10000E-03    72.022       -.11170E-04** at limit **
  18  Prefactor     .10000E-03    353.07       -.14129E-03** at limit **
  19  norm          2.1922        1.6438       -.28099E-06    .60168E-04
  20  Prefactor     .10000E-03    11.516        .11961E-06** at limit **
  21  Prefactor     .10000E-03    65.431        .12358E-04** at limit **
  22  Prefactor     .10000E-03    9.8938        .17540E-06** at limit **
  23  norm          7.4666        6.4820        .68400E-05    .10931E-03
  24  Prefactor     .10000E-03    9.1531        .21751E-06** at limit **
  25  Prefactor     .10000E-03    37.746       -.21726E-04** at limit **
  26  Prefactor     .10000E-03    89.735       -.42164E-04** at limit **
  27  norm          .10000E-03    44.486        .19417E-04** at limit **
  28  Prefactor     8.3618        66.775       -.37942E-04   -.54755E-05
  29  Normalizat    1.7652        .32678       -.59620E-05    .81844E-04
  30  Prefactor     .27756E-14    .11614        .12628E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 85.6466
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.397
  Prefactor  = 20.6818
  Prefactor  = 23.5053
  Prefactor  = 14.9055
  Prefactor  = 0.0001
  Prefactor  = 22.4092
  norm       = 0.000100001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.19223
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.46661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.3618
  Normalizat = 1.76519
  Prefactor  = 2.77556e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   1053.332     FROM HESSE     STATUS=OK           572 CALLS     5082 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4683        .67005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     85.647        110.47        .21711E-03   -1.3854    
   3  Prefactor     .10000E-03    213.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    23.958        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.731        .17271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.885        .16746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     104.40        226.91        .39351E-04   -1.3661    
   9  Prefactor     20.682        182.71        .88167E-04   -1.4798    
  10  Prefactor     23.505        69.981        .82652E-04   -1.4738    
  11  Prefactor     14.906        9.6891        .77257E-04   -1.4936    
  12  Prefactor     .10000E-03    43.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.409        33.380        .84666E-04   -1.4761    
  14  norm          .10000E-03    7.4472        .85864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    23.278        .29935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    149.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    72.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    353.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1922        1.6397        .33977E-04   -1.5412    
  20  Prefactor     .10000E-03    11.520        .10760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    65.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.8939        .99733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.4666        6.5053        .71660E-04   -1.5161    
  24  Prefactor     .10000E-03    9.1534        .95926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    37.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    89.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    44.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.3618        68.445        .13795E-03   -1.5130    
  29  Normalizat    1.7652        .32916        .20507E-03   -.70576    
  30  Prefactor     .27756E-14    .12193        .64994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27224e-10
Minuit parameter uncertainties:
  1  2.82978e-05
  2  110.739
  3  0.000901304
  4  0.000421423
  5  0.000722643
  6  0.00019446
  7  4.64475e-05
  8  228.84
  9  123.451
  10  70.2271
  11  9.69009
  12  9.88449e-05
  13  33.4076
  14  0.000133689
  15  0.000510478
  16  0.000330676
  17  8.03811e-05
  18  0.000654335
  19  1.63974
  20  4.63443e-05
  21  0.00047853
  22  3.44358e-07
  23  6.50588
  24  2.08538e-06
  25  3.34888e-05
  26  0.000624308
  27  2.9063e-06
  28  47.9212
  29  0.329576
  30  3.59345e-08
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  9.884e-05  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:  2.776e-15  3.593e-08  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.765e+00  3.296e-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: 2.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446721/likelihoodResults_403920001_404179201_4FGL_J1216.2+0537_daily_bin635.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) = 1053.33192853
delta logL = -0.000109243728275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1053.33181935
delta logL = -5.68493305764e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0796       1.0000          .0000       10.000    
     3 'Normalizat'    1.7652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .21561E-09   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=   1053.332     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7072.7        .90712E-02** at limit **
   2  Index         2.0611        8.6756        .50000        .35793E-05
   3  Normalizat    1.7652        .13680        .46400E-01    .11143E-05
   4  Prefactor     .16653E-14    .31280E-01    .15819    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06107
  Normalizat = 1.76519
  Prefactor  = 1.66533e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   1053.332     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8605.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0611        8.0080        .50000       -.62832    
   3  Normalizat    1.7652        .24273        .20507E-03   -.70576    
   4  Prefactor     .16653E-14    .11381        .64994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.10141e-09
Minuit parameter uncertainties:
  1  0.00236157
  2  63.6799
  3  0.242893
  4  2.86803e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446721': 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) = 1053.33181933
delta logL = -3.57729277312e-08

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.362e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.061e+00  6.368e+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:  1.665e-15  2.868e-08  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.765e+00  2.429e-01  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/446721/cmap_HighResolution_403920001_404179201_4FGL_J1216.2+0537_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-02', job_status='DONE', photon_flux_upper_limit='2.15e-07', time_completed='2021-09-05 05:58:48.893747', job_id='446721', GAL2='0.00', fit_tolerance='1e-08', EG2='1.77', EG='1.77', time_epoch_completed='1630846728.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-3.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='635' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:58:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 446721: <4FGL_J1216.2+0537_daily_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin635 184.061 5.6248 403920001 404179201 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 :                                   459.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   479 sec.
    Turnaround time :                            481 sec.

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

