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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin976
RA = 184.061, Dec = 5.6248
tmin = 492307201, tmax = 492566401
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='447311', job_status='RUN', time_executed='2021-09-05 05:55:36.251948', time_epoch_executed='1630846536.25' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447311/ft1_4FGL_J1216.2+0537_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447311/ft2_4FGL_J1216.2+0537_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447311/ft1_4FGL_J1216.2+0537_daily_bin976.fits outfile=/scratch/kocevski/447311/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin976.fits ra=184.061 dec=5.6248 rad=12.0 tmin=492307201.0 tmax=492566401.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.69
user 3.45
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447311/ft1_filtered_4FGL_J1216.2+0537_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/447311/ft2_4FGL_J1216.2+0537_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/447311/ltcube_492307201_492566401_4FGL_J1216.2+0537_daily_bin976.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/447311/ft2_4FGL_J1216.2+0537_daily_bin976.fits
.....................!
real 12.00
user 11.60
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447311/ft1_filtered_4FGL_J1216.2+0537_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/447311/ft2_4FGL_J1216.2+0537_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/447311/ltcube_492307201_492566401_4FGL_J1216.2+0537_daily_bin976.fits outfile=/scratch/kocevski/447311/expmap_492307201_492566401_4FGL_J1216.2+0537_daily_bin976.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/447311/ltcube_492307201_492566401_4FGL_J1216.2+0537_daily_bin976.fits
.....................!
real 191.93
user 186.28
sys 4.95

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/447311/ft1_filtered_4FGL_J1216.2+0537_daily_bin976.fits scfile=/scratch/kocevski/447311/ft2_4FGL_J1216.2+0537_daily_bin976.fits outfile=/scratch/kocevski/447311/cmap_492307201_492566401_4FGL_J1216.2+0537_daily_bin976.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/447311/ft1_filtered_4FGL_J1216.2+0537_daily_bin976.fits scfile=/scratch/kocevski/447311/ft2_4FGL_J1216.2+0537_daily_bin976.fits outfile=/scratch/kocevski/447311/cmap_HighResolution_492307201_492566401_4FGL_J1216.2+0537_daily_bin976.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    102.17       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.028       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.549       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8309       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1301       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    39.773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    150.43       1.0000         .10000E-03   10000.    
    19 'norm      '    .23015       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.1165       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    13.090       1.0000         .10000E-03   10000.    
    28 'Prefactor '    46.636       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1449       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96576       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=   4226.807     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3869 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6862        .88667E-07** at limit **
   2  Prefactor     .10000E-03    25.963        .24050E-06** at limit **
   3  Prefactor     102.13        146.11       -.88854E-06   -.10635E-04
   4  Prefactor     10.029        11.446        .90675E-06   -.14934E-04
   5  Prefactor     .10000E-03    6.6905       -.49003E-07** at limit **
   6  Prefactor     20.548        17.751       -.11874E-07   -.89691E-06
   7  Prefactor     .10000E-03    22.400        .12062E-06** at limit **
   8  Prefactor     .10000E-03    36.838        .23947E-07** at limit **
   9  Prefactor     .10000E-03    15.022       -.14226E-06** at limit **
  10  Prefactor     .10000E-03    20.573       -.51917E-07** at limit **
  11  Prefactor     .10000E-03    1.1247        .30645E-07** at limit **
  12  Prefactor     .10000E-03    23.724       -.46939E-06** at limit **
  13  Prefactor     .10000E-03    42.222       -.10564E-05** at limit **
  14  norm          2.8308        3.1120       -.48574E-06   -.18443E-04
  15  norm          4.1281        6.4157       -.62231E-06   -.17515E-03
  16  Prefactor     .10000E-03    17.724        .53448E-07** at limit **
  17  norm          39.830        82.244       -.13000E-05    .68986E-06
  18  Prefactor     150.50        143.34        .18841E-06    .19788E-04
  19  norm          .22986        .65130        .53498E-06    .48191E-03
  20  Prefactor     14.233        11.756        .57281E-07   -.28984E-05
  21  Prefactor     .10000E-03    15.847        .72980E-07** at limit **
  22  Prefactor     .10000E-03    5.4176       -.26689E-07** at limit **
  23  norm          4.1162        2.4204       -.19973E-06   -.18964E-03
  24  Prefactor     .10000E-03    5.3271       -.75319E-07** at limit **
  25  Prefactor     .10000E-03    18.309       -.12317E-06** at limit **
  26  Prefactor     .10000E-03    31.163        .12911E-06** at limit **
  27  norm          13.086        24.690        .39196E-07   -.95530E-05
  28  Prefactor     46.634        23.999        .79415E-07   -.72018E-05
  29  Normalizat    1.1448        .26677        .17119E-05   -.14193E-03
  30  Prefactor     .96584        .22068       -.27694E-05    .15412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 102.133
  Prefactor  = 10.0289
  Prefactor  = 0.0001
  Prefactor  = 20.5482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83082
  norm       = 4.12813
  Prefactor  = 0.0001
  norm       = 39.8296
  Prefactor  = 150.495
  norm       = 0.229859
  Prefactor  = 14.233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0856
  Prefactor  = 46.6344
  Normalizat = 1.14478
  Prefactor  = 0.965844
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.807     FROM HESSE     STATUS=OK           580 CALLS     4449 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7716        .20812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     102.13        146.76        .19888E-03   -1.3683    
   4  Prefactor     10.029        11.403        .63267E-03   -1.5074    
   5  Prefactor     .10000E-03    6.7785        .16419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.548        17.771        .88357E-04   -1.4801    
   7  Prefactor     .10000E-03    22.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1284        .67335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8308        3.0914        .11472E-03   -1.5371    
  15  norm          4.1281        6.4341        .14235E-03   -1.5302    
  16  Prefactor     .10000E-03    17.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          39.830        82.774        .63557E-04   -1.4445    
  18  Prefactor     150.50        143.38        .16431E-03   -1.3248    
  19  norm          .22986        .66604        .76148E-04   -1.5612    
  20  Prefactor     14.233        11.758        .10617E-03   -1.4953    
  21  Prefactor     .10000E-03    15.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.4408        .14778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.1162        2.4161        .73009E-04   -1.5302    
  24  Prefactor     .10000E-03    5.3651        .14652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    31.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.086        24.693        .11071E-03   -1.4984    
  28  Prefactor     46.634        24.116        .58714E-04   -1.4341    
  29  Normalizat    1.1448        .30503        .27620E-03   -.88327    
  30  Prefactor     .96584        .24508        .25253E-03   -.93877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0301e-10
Minuit parameter uncertainties:
  1  3.2254e-06
  2  6.39344e-05
  3  147.288
  4  11.4055
  5  9.76785e-06
  6  17.7753
  7  2.41619e-05
  8  2.4864e-05
  9  3.47509e-05
  10  1.13985e-05
  11  2.8928e-07
  12  5.26494e-05
  13  0.000187084
  14  3.0916
  15  6.43521
  16  2.14251e-05
  17  83.0144
  18  143.71
  19  0.666059
  20  11.76
  21  6.59965e-06
  22  8.51744e-06
  23  2.41617
  24  9.03761e-07
  25  2.96447e-05
  26  8.13873e-05
  27  24.7122
  28  24.1207
  29  0.305502
  30  0.245363
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  5.265e-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:  9.658e-01  2.454e-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.145e+00  3.055e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447311/likelihoodResults_492307201_492566401_4FGL_J1216.2+0537_daily_bin976.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) = 4226.80756066
delta logL = -0.000200505541216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4226.80736235
delta logL = -2.19490539166e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17905E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2198       1.0000          .0000       10.000    
     3 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96584       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=   4226.807     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9842        .90712E-02** at limit **
   2  Index         2.2001        5.8572        .50000        .76311E-05
   3  Normalizat    1.1448        .26829E-02    .62442E-01   -.14586E-03
   4  Prefactor     .96584        .22859E-02    .45839E-01   -.27818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.20009
  Normalizat = 1.14478
  Prefactor  = 0.965838
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.807     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2001        5.3595        .50000       -.59436    
   3  Normalizat    1.1448        .11719E-01    .27620E-03   -.88327    
   4  Prefactor     .96584        .99902E-02    .25253E-03   -.93877    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.39996e-08
Minuit parameter uncertainties:
  1  0.000853807
  2  155.485
  3  0.0117189
  4  0.00999017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447311': 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) = 4226.80736042
delta logL = -2.59983607975e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  8.538e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.200e+00  1.555e+02  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.658e-01  9.990e-03  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.145e+00  1.172e-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/447311/cmap_HighResolution_492307201_492566401_4FGL_J1216.2+0537_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2021-09-05 06:07:42.707440', job_id='447311', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630847262.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='976' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:07:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 447311: <4FGL_J1216.2+0537_daily_bin976> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin976 184.061 5.6248 492307201 492566401 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 :                                   699.02 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             242.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            977 sec.

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

