/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 102 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 = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1216.2+0537_daily_bin375
RA = 184.061, Dec = 5.6248
tmin = 336528001, tmax = 336787201
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='443718', job_status='RUN', time_executed='2021-09-05 05:42:43.556693', time_epoch_executed='1630845763.56' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443718/ft1_4FGL_J1216.2+0537_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443718/ft2_4FGL_J1216.2+0537_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443718/ft1_4FGL_J1216.2+0537_daily_bin375.fits outfile=/scratch/kocevski/443718/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin375.fits ra=184.061 dec=5.6248 rad=12.0 tmin=336528001.0 tmax=336787201.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.80
user 5.56
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443718/ft2_4FGL_J1216.2+0537_daily_bin375.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/443718/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/443718/ft1_filtered_4FGL_J1216.2+0537_daily_bin375.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/443718/ft1_filtered_4FGL_J1216.2+0537_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/443718/ft2_4FGL_J1216.2+0537_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/443718/ltcube_336528001_336787201_4FGL_J1216.2+0537_daily_bin375.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/443718/ft2_4FGL_J1216.2+0537_daily_bin375.fits
.....................!
real 11.62
user 11.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443718/ft1_filtered_4FGL_J1216.2+0537_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/443718/ft2_4FGL_J1216.2+0537_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/443718/ltcube_336528001_336787201_4FGL_J1216.2+0537_daily_bin375.fits outfile=/scratch/kocevski/443718/expmap_336528001_336787201_4FGL_J1216.2+0537_daily_bin375.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/443718/ltcube_336528001_336787201_4FGL_J1216.2+0537_daily_bin375.fits
.....................!
real 190.87
user 185.48
sys 4.89

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/443718/ft1_filtered_4FGL_J1216.2+0537_daily_bin375.fits scfile=/scratch/kocevski/443718/ft2_4FGL_J1216.2+0537_daily_bin375.fits outfile=/scratch/kocevski/443718/cmap_336528001_336787201_4FGL_J1216.2+0537_daily_bin375.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.58
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443718/ft1_filtered_4FGL_J1216.2+0537_daily_bin375.fits scfile=/scratch/kocevski/443718/ft2_4FGL_J1216.2+0537_daily_bin375.fits outfile=/scratch/kocevski/443718/cmap_HighResolution_336528001_336787201_4FGL_J1216.2+0537_daily_bin375.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7072       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11647E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.972       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    108.09       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.421       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18322E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.8935       1.0000         .10000E-03   10000.    
    15 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    169.96       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5437       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.211       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62852E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.294       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    16.321       1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.764       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2833       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .66723       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=   3441.213     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     4451 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7070        3.5820       -.89773E-07    .22659E-04
   2  Prefactor     .10000E-03    81.125       -.54531E-05** at limit **
   3  Prefactor     42.498        184.73        .16766E-04    .53365E-04
   4  Prefactor     .10000E-03    12.825        .26835E-05** at limit **
   5  Prefactor     14.969        12.242        .31369E-07   -.17085E-04
   6  Prefactor     .10000E-03    7.8240       -.63221E-06** at limit **
   7  Prefactor     .10000E-03    8.7812       -.16370E-06** at limit **
   8  Prefactor     108.08        94.204        .83138E-06    .28498E-04
   9  Prefactor     .10000E-03    20.654        .21521E-05** at limit **
  10  Prefactor     15.416        37.811        .22306E-05    .21072E-04
  11  Prefactor     .10004E-03    2.7070        .14742E-05** at limit **
  12  Prefactor     33.449        39.127        .22609E-05    .12096E-03
  13  Prefactor     .10000E-03    12.210        .62886E-06** at limit **
  14  norm          5.8937        3.7940        .13168E-06   -.80758E-04
  15  norm          .10000E-03    2.6921        .36686E-06** at limit **
  16  Prefactor     .10000E-03    25.978       -.71045E-06** at limit **
  17  norm          .10000E-03    19.853        .38538E-07** at limit **
  18  Prefactor     169.99        213.93       -.39415E-05   -.41744E-04
  19  norm          1.5435        .85594        .10078E-06   -.11896E-03
  20  Prefactor     10.212        9.7980        .52710E-05    .50060E-03
  21  Prefactor     .10011E-03    328.43       -.51353E-04** at limit **
  22  Prefactor     .10000E-03    4.1330       -.29708E-06** at limit **
  23  norm          12.293        3.6111        .12092E-06    .19553E-03
  24  Prefactor     .10000E-03    7.6268        .49684E-07** at limit **
  25  Prefactor     .10000E-03    19.504       -.56725E-06** at limit **
  26  Prefactor     .10000E-03    26.306       -.61793E-06** at limit **
  27  norm          16.313        31.092        .12583E-05    .70354E-04
  28  Prefactor     19.761        19.752        .73465E-06    .57955E-04
  29  Normalizat    1.2837        .29622       -.55947E-05    .56808E-03
  30  Prefactor     .66703        .23630        .67840E-05    .33019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70698
  Prefactor  = 0.000100002
  Prefactor  = 42.4984
  Prefactor  = 0.0001
  Prefactor  = 14.9693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 108.083
  Prefactor  = 0.0001
  Prefactor  = 15.4159
  Prefactor  = 0.000100036
  Prefactor  = 33.4493
  Prefactor  = 0.0001
  norm       = 5.89368
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 169.987
  norm       = 1.54347
  Prefactor  = 10.212
  Prefactor  = 0.000100115
  Prefactor  = 0.0001
  norm       = 12.293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.3131
  Prefactor  = 19.7609
  Normalizat = 1.28369
  Prefactor  = 0.667034
 **********
 **   18 **HESSE 
 **********

 FCN=   3441.213     FROM HESSE     STATUS=OK           580 CALLS     5031 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7070        3.5727        .12409E-03   -1.5379    
   2  Prefactor     .10000E-03    82.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.498        186.08        .61450E-04   -1.4403    
   4  Prefactor     .10000E-03    12.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.969        12.242        .10351E-03   -1.4934    
   6  Prefactor     .10000E-03    7.8346        .16031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.7891        .16979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     108.08        94.253        .19342E-03   -1.3625    
   9  Prefactor     .10000E-03    20.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.416        37.779        .10199E-03   -1.4923    
  11  Prefactor     .10004E-03    12.975        .17038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.449        39.148        .69272E-04   -1.4551    
  13  Prefactor     .10000E-03    12.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8937        3.7924        .87221E-04   -1.5222    
  15  norm          .10000E-03    2.7152        .93792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     169.99        214.33        .15473E-03   -1.3093    
  19  norm          1.5435        .84816        .37581E-04   -1.5459    
  20  Prefactor     10.212        9.9254        .62697E-03   -1.5069    
  21  Prefactor     .10011E-03    326.02        .63215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1362        .11649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.293        3.6093        .56723E-04   -1.5007    
  24  Prefactor     .10000E-03    7.6903        .15822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.313        31.143        .99140E-04   -1.4900    
  28  Prefactor     19.761        19.766        .90094E-04   -1.4819    
  29  Normalizat    1.2837        .33542        .25646E-03   -.84054    
  30  Prefactor     .66703        .26683        .29022E-03   -1.0483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00832e-09
Minuit parameter uncertainties:
  1  3.57298
  2  0.00088932
  3  178.796
  4  3.41293e-05
  5  12.244
  6  4.99128e-05
  7  6.77017e-06
  8  94.3844
  9  0.00010559
  10  37.8374
  11  0.0013585
  12  39.1785
  13  6.17722e-05
  14  3.7926
  15  5.01872e-06
  16  2.62181e-05
  17  1.14183e-05
  18  215.32
  19  0.848163
  20  9.92698
  21  0.0123105
  22  9.267e-06
  23  3.60939
  24  1.06319e-05
  25  5.68146e-05
  26  6.06325e-05
  27  31.1739
  28  19.7729
  29  0.335992
  30  0.267338
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.670e-01  2.673e-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.284e+00  3.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 184.061 5.625
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 2.65e-05

TS (Fixed Index): 1.29
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443718/likelihoodResults_336528001_336787201_4FGL_J1216.2+0537_daily_bin375.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3440.98323912
delta logL = 0.229271614835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3440.9573927
delta logL = 0.255118039683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.636       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7182       1.0000          .0000       10.000    
     3 'Normalizat'    1.2370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69175       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=   3440.957     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      291 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.653        303.65        .30713E-02   -.11402E-03
   2  Index         2.7180        3.2539        .81805E-01    .54791E-04
   3  Normalizat    1.2352        .11724        .58892E-01    .45952E-03
   4  Prefactor     .69336        .83928E-01    .64423E-01    .44449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6534
  Index      = 2.71799
  Normalizat = 1.23522
  Prefactor  = 0.693358
 **********
 **   18 **HESSE 
 **********

 FCN=   3440.957     FROM HESSE     STATUS=OK            29 CALLS      320 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.653        73.141        .12285E-03   -1.5055    
   2  Index         2.7180        2.0636        .40176E-02   -.47395    
   3  Normalizat    1.2352        .34154        .26045E-03   -.85521    
   4  Prefactor     .69336        .27888        .28502E-03   -1.0379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94723e-10
Minuit parameter uncertainties:
  1  55.9262
  2  2.14586
  3  0.342157
  4  0.279448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443718': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3440.95737385
delta logL = 0.255136888687

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.065e+01  5.593e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.718e+00  2.146e+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:  6.934e-01  2.794e-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.235e+00  3.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 184.061 5.625
Photon Index (Free Index): 2.72 +/- 2.15
Photon Flux (Free Index): 7.21e-08 +/- 9.82e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/443718/cmap_HighResolution_336528001_336787201_4FGL_J1216.2+0537_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='1.71e-05', photon_flux_error='4.03e-08', dlogl='2.55e-01', energy_flux='2.27e-05', photon_flux2='7.21e-08', job_status='DONE', time_completed='2021-09-05 05:54:00.392846', photon_index_error2='2.15', photon_index2='2.72', ts='1.29', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.98e-05', EG='1.28', time_epoch_completed='1630846440.39', return_code='0', job_id='443718', GAL2='0.69', EG2='1.24', return_code2='0', energy_flux_error='2.65e-05', photon_flux_error2='9.82e-08', ts2='1.81', photon_index='2.02' WHERE bin_id='375' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:54:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 443718: <4FGL_J1216.2+0537_daily_bin375> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin375> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 05:40:50 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:40:52 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:40:52 2021
Terminated at Sun Sep  5 05:54:01 2021
Results reported at Sun Sep  5 05:54:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin375 184.061 5.6248 336528001 336787201 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            791 sec.

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

