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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin928
RA = 184.061, Dec = 5.6248
tmin = 479865601, tmax = 480124801
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='447235', job_status='RUN', time_executed='2021-09-05 05:51:56.351929', time_epoch_executed='1630846316.35' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447235/ft1_4FGL_J1216.2+0537_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447235/ft2_4FGL_J1216.2+0537_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447235/ft1_4FGL_J1216.2+0537_daily_bin928.fits outfile=/scratch/kocevski/447235/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin928.fits ra=184.061 dec=5.6248 rad=12.0 tmin=479865601.0 tmax=480124801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.56
user 3.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447235/ft1_filtered_4FGL_J1216.2+0537_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/447235/ft2_4FGL_J1216.2+0537_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/447235/ltcube_479865601_480124801_4FGL_J1216.2+0537_daily_bin928.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/447235/ft2_4FGL_J1216.2+0537_daily_bin928.fits
.....................!
real 12.02
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447235/ft1_filtered_4FGL_J1216.2+0537_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/447235/ft2_4FGL_J1216.2+0537_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/447235/ltcube_479865601_480124801_4FGL_J1216.2+0537_daily_bin928.fits outfile=/scratch/kocevski/447235/expmap_479865601_480124801_4FGL_J1216.2+0537_daily_bin928.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/447235/ltcube_479865601_480124801_4FGL_J1216.2+0537_daily_bin928.fits
.....................!
real 192.38
user 185.75
sys 4.63

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/447235/ft1_filtered_4FGL_J1216.2+0537_daily_bin928.fits scfile=/scratch/kocevski/447235/ft2_4FGL_J1216.2+0537_daily_bin928.fits outfile=/scratch/kocevski/447235/cmap_479865601_480124801_4FGL_J1216.2+0537_daily_bin928.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447235/ft1_filtered_4FGL_J1216.2+0537_daily_bin928.fits scfile=/scratch/kocevski/447235/ft2_4FGL_J1216.2+0537_daily_bin928.fits outfile=/scratch/kocevski/447235/cmap_HighResolution_479865601_480124801_4FGL_J1216.2+0537_daily_bin928.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.59
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.626       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6960       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21589E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.828       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23776E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14909E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .76955E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6298       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0268       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.4434       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6721       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10525E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1592       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .84436       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=   5431.901     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     3367 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8642        3.4440       -.96422E-07    .59144E-04
   2  Prefactor     .10000E-03    12.580        .15949E-06** at limit **
   3  Prefactor     15.084        141.71       -.24551E-04    .13703E-04
   4  Prefactor     6.6946        6.7435       -.24897E-05    .83898E-04
   5  Prefactor     .10000E-03    4.9164        .15485E-06** at limit **
   6  Prefactor     .10000E-03    25.996       -.16068E-04** at limit **
   7  Prefactor     44.875        24.311        .82316E-05    .13140E-03
   8  Prefactor     .10000E-03    18.452        .43549E-05** at limit **
   9  Prefactor     .10000E-03    98.231       -.26533E-04** at limit **
  10  Prefactor     .10000E-03    55.131       -.40692E-04** at limit **
  11  Prefactor     .10000E-03    1.1191        .10626E-07** at limit **
  12  Prefactor     .10000E-03    198.69        .28768E-04** at limit **
  13  Prefactor     .10000E-03    27.282        .14075E-04** at limit **
  14  norm          .78155E-01    1.3899       -.54224E-06   -.20527E-03
  15  norm          2.6238        4.9019       -.72603E-06   -.88870E-03
  16  Prefactor     .10000E-03    14.895       -.11453E-04** at limit **
  17  norm          .10000E-03    16.266        .96571E-05** at limit **
  18  Prefactor     .10000E-03    51.681        .22968E-04** at limit **
  19  norm          2.9957        .90900        .17347E-07   -.57242E-03
  20  Prefactor     5.0273        6.8839       -.31974E-05   -.29693E-03
  21  Prefactor     .10000E-03    74.456        .41336E-04** at limit **
  22  Prefactor     .10000E-03    9.0712        .61622E-07** at limit **
  23  norm          7.4427        2.5839       -.22715E-07   -.24428E-03
  24  Prefactor     3.6736        6.3644       -.29539E-06   -.17583E-03
  25  Prefactor     .10000E-03    24.280        .22274E-05** at limit **
  26  Prefactor     .10000E-03    15.093        .12610E-04** at limit **
  27  norm          .10000E-03    16.725       -.14507E-04** at limit **
  28  Prefactor     .10000E-03    8.2704       -.72674E-07** at limit **
  29  Normalizat    1.1602        .21383        .62724E-06    .76809E-05
  30  Prefactor     .84360        .17318       -.32670E-08    .93106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86421
  Prefactor  = 0.0001
  Prefactor  = 15.0839
  Prefactor  = 6.69461
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 44.8749
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0781553
  norm       = 2.62378
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.99566
  Prefactor  = 5.02732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.44267
  Prefactor  = 3.67359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16016
  Prefactor  = 0.843602
 **********
 **   18 **HESSE 
 **********

 FCN=   5431.901     FROM HESSE     STATUS=OK           580 CALLS     3947 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8642        3.4498        .12507E-03   -1.5315    
   2  Prefactor     .10000E-03    12.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.084        142.93        .10132E-03   -1.4931    
   4  Prefactor     6.6946        6.7397        .15507E-03   -1.5190    
   5  Prefactor     .10000E-03    4.9409        .15957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.875        24.366        .59881E-04   -1.4367    
   8  Prefactor     .10000E-03    18.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    99.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    55.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1300        .76126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    203.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .78155E-01    9.9852        .16659E-02   -1.5652    
  15  norm          2.6238        4.8745        .18991E-03   -1.5384    
  16  Prefactor     .10000E-03    14.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    51.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9957        .90404        .32984E-04   -1.5362    
  20  Prefactor     5.0273        6.8940        .17935E-03   -1.5259    
  21  Prefactor     .10000E-03    75.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.4427        2.5838        .65072E-04   -1.5162    
  24  Prefactor     3.6736        6.3550        .21078E-03   -1.5325    
  25  Prefactor     .10000E-03    24.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    16.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.3392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1602        .25160        .26438E-03   -.87843    
  30  Prefactor     .84360        .20356        .25767E-03   -.98141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74946e-10
Minuit parameter uncertainties:
  1  3.44997
  2  9.43619e-06
  3  93.1567
  4  6.74046
  5  6.69124e-06
  6  0.000396424
  7  24.3709
  8  1.8999e-05
  9  0.000810336
  10  0.000143895
  11  1.85753e-07
  12  0.00024037
  13  0.000108496
  14  1.76597
  15  4.87526
  16  8.49846e-06
  17  6.07281e-06
  18  6.30778e-06
  19  0.904042
  20  6.89508
  21  0.000202142
  22  8.75061e-06
  23  2.58386
  24  6.35618
  25  4.92317e-06
  26  2.29121e-06
  27  5.97662e-06
  28  6.39193e-06
  29  0.251863
  30  0.203743
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.404e-04  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:  8.436e-01  2.037e-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.160e+00  2.519e-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: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447235/likelihoodResults_479865601_480124801_4FGL_J1216.2+0537_daily_bin928.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) = 5431.90075292
delta logL = -2.32503398365e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5431.90075291
delta logL = -2.32443935602e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0198       1.0000          .0000       10.000    
     3 'Normalizat'    1.1602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84360       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=   5428.802     FROM MIGRAD    STATUS=CONVERGED    152 CALLS      301 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42690E-01    .50202        .15985E-02   -.10815E-02
   2  Index         4.7936        1.9470        .47349E-01    .23181E-03
   3  Normalizat    .96862        .17083        .64208E-01   -.51372E-04
   4  Prefactor     .94505        .13410        .44282E-01    .10595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0426899
  Index      = 4.79355
  Normalizat = 0.96862
  Prefactor  = 0.94505
 **********
 **   18 **HESSE 
 **********

 FCN=   5428.802     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      334 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42690E-01    .50759        .71297E-05   -1.5749    
   2  Index         4.7936        2.0915        .19994E-02   -.41302E-01
   3  Normalizat    .96862        .22275        .28406E-03   -.94089    
   4  Prefactor     .94505        .18676        .24454E-03   -.94584    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95203e-07
Minuit parameter uncertainties:
  1  0.294064
  2  2.15801
  3  0.222961
  4  0.186885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447235': 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) = 5428.80196001
delta logL = 3.09876965743

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  4.269e-02  2.941e-01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  4.794e+00  2.158e+00  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:  9.450e-01  1.869e-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:  9.686e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.68
Ra Dec: 184.061 5.625
Photon Index (Free Index): 4.79 +/- 2.16
Photon Flux (Free Index): 1.67e-07 +/- 2.28e-06
Energy Flux (Free Index): 2.26e-05 +/- 3.05e-04

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/447235/cmap_HighResolution_479865601_480124801_4FGL_J1216.2+0537_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', comment='SUCCESS', energy_flux2='2.26e-05', dlogl='3.10e+00', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-05 06:06:00.011206', photon_index_error2='2.16', photon_index2='4.79', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='3.05e-04', EG='1.16', time_epoch_completed='1630847160.01', return_code='0', job_id='447235', GAL2='0.95', EG2='0.97', return_code2='102', photon_flux_error2='2.28e-06', ts2='6.68', photon_index='2.02' WHERE bin_id='928' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 447235: <4FGL_J1216.2+0537_daily_bin928> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin928 184.061 5.6248 479865601 480124801 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            878 sec.

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

