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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin889
RA = 184.061, Dec = 5.6248
tmin = 469756801, tmax = 470016001
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='447169', job_status='RUN', time_executed='2021-09-05 05:51:36.881282', time_epoch_executed='1630846296.88' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='889'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447169/ft1_4FGL_J1216.2+0537_daily_bin889.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447169/ft2_4FGL_J1216.2+0537_daily_bin889.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447169/ft1_4FGL_J1216.2+0537_daily_bin889.fits outfile=/scratch/kocevski/447169/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin889.fits ra=184.061 dec=5.6248 rad=12.0 tmin=469756801.0 tmax=470016001.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.20
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447169/ft1_filtered_4FGL_J1216.2+0537_daily_bin889.fits evtable="EVENTS" scfile=/scratch/kocevski/447169/ft2_4FGL_J1216.2+0537_daily_bin889.fits sctable="SC_DATA" expcube=/scratch/kocevski/447169/ltcube_469756801_470016001_4FGL_J1216.2+0537_daily_bin889.fits outfile=/scratch/kocevski/447169/expmap_469756801_470016001_4FGL_J1216.2+0537_daily_bin889.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/447169/ltcube_469756801_470016001_4FGL_J1216.2+0537_daily_bin889.fits
.....................!
real 190.63
user 184.81
sys 5.18

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/447169/ft1_filtered_4FGL_J1216.2+0537_daily_bin889.fits scfile=/scratch/kocevski/447169/ft2_4FGL_J1216.2+0537_daily_bin889.fits outfile=/scratch/kocevski/447169/cmap_469756801_470016001_4FGL_J1216.2+0537_daily_bin889.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.785       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.883       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3234       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3515       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6027       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4170       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0350       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.299       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7077       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    70.940       1.0000         .10000E-03   10000.    
    27 'norm      '    5.5547       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89310       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3412       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=   6702.713     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3871 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0291        .22238E-07** at limit **
   2  Prefactor     .10000E-03    10.924       -.19581E-07** at limit **
   3  Prefactor     .10004E-03    156.33       -.13242E-04** at limit **
   4  Prefactor     .10000E-03    4.7637        .11582E-08** at limit **
   5  Prefactor     .10000E-03    2.9505       -.11373E-08** at limit **
   6  Prefactor     .10000E-03    13.449       -.22335E-05** at limit **
   7  Prefactor     62.168        25.589       -.81780E-07   -.29577E-04
   8  Prefactor     .10000E-03    50.891       -.12261E-05** at limit **
   9  Prefactor     23.785        33.415        .65614E-07    .92151E-05
  10  Prefactor     28.883        23.545       -.47285E-06   -.21865E-04
  11  Prefactor     .10000E-03    2.4404        .34503E-07** at limit **
  12  Prefactor     .10000E-03    6.3195        .12573E-06** at limit **
  13  Prefactor     4.3155        10.722        .45962E-05   -.10504E-02
  14  norm          1.3528        2.4632       -.80169E-06   -.43305E-03
  15  norm          1.6021        1.9110       -.13852E-06   -.31703E-03
  16  Prefactor     .10000E-03    16.171        .81554E-06** at limit **
  17  norm          1.3003        120.44        .24597E-04    .10590E-03
  18  Prefactor     .10000E-03    41.743        .31467E-06** at limit **
  19  norm          2.0355        .69331       -.15446E-06   -.11427E-02
  20  Prefactor     .10000E-03    8.9841       -.17894E-05** at limit **
  21  Prefactor     14.299        18.372        .15870E-07    .13731E-04
  22  Prefactor     .10000E-03    8.8763        .15257E-05** at limit **
  23  norm          2.7078        1.6122        .20649E-07   -.25797E-03
  24  Prefactor     .10000E-03    6.0400        .69784E-06** at limit **
  25  Prefactor     .10000E-03    12.241        .19075E-05** at limit **
  26  Prefactor     70.942        49.655        .56230E-06    .52750E-04
  27  norm          5.5562        45.693       -.79219E-07   -.18776E-04
  28  Prefactor     .10000E-03    6.1314       -.80119E-06** at limit **
  29  Normalizat    .89304        .20767        .99596E-08   -.45229E-04
  30  Prefactor     1.3412        .18039       -.38535E-06   -.16896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 62.1676
  Prefactor  = 0.0001
  Prefactor  = 23.7845
  Prefactor  = 28.8826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.31547
  norm       = 1.3528
  norm       = 1.60211
  Prefactor  = 0.0001
  norm       = 1.30032
  Prefactor  = 0.0001
  norm       = 2.03548
  Prefactor  = 0.000100001
  Prefactor  = 14.2993
  Prefactor  = 0.000100001
  norm       = 2.70778
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 70.9417
  norm       = 5.55615
  Prefactor  = 0.0001
  Normalizat = 0.893042
  Prefactor  = 1.34119
 **********
 **   18 **HESSE 
 **********

 FCN=   6702.713     FROM HESSE     STATUS=OK           582 CALLS     4453 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1128        .27807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    159.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7833        .17449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9604        .13731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.168        25.592        .50892E-04   -1.4129    
   8  Prefactor     .10000E-03    50.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.785        33.532        .82135E-04   -1.4732    
  10  Prefactor     28.883        23.649        .74548E-04   -1.4633    
  11  Prefactor     .10000E-03    2.5252        .24960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3155        14.117        .96868E-03   -1.5292    
  14  norm          1.3528        2.4976        .15135E-03   -1.5475    
  15  norm          1.6021        1.8968        .11749E-03   -1.5455    
  16  Prefactor     .10000E-03    16.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3003        127.08        .36360E-03   -1.5480    
  18  Prefactor     .10000E-03    41.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0355        .68979        .35492E-04   -1.5423    
  20  Prefactor     .10000E-03    9.2253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.299        18.370        .10592E-03   -1.4951    
  22  Prefactor     .10000E-03    9.0360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7078        1.6063        .76500E-04   -1.5379    
  24  Prefactor     .10000E-03    6.1308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     70.942        49.679        .47662E-04   -1.4021    
  27  norm          5.5562        45.719        .17047E-03   -1.5236    
  28  Prefactor     .10000E-03    6.1618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89304        .24636        .31929E-03   -.96705    
  30  Prefactor     1.3412        .21467        .23824E-03   -.82090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56583e-09
Minuit parameter uncertainties:
  1  1.45469e-06
  2  1.07717e-06
  3  0.00488658
  4  1.52962e-06
  5  2.08338e-07
  6  0.000235915
  7  25.5964
  8  0.000249502
  9  33.5582
  10  23.6565
  11  2.46504e-06
  12  8.25516e-06
  13  14.128
  14  2.49784
  15  1.8969
  16  9.5901e-05
  17  25.765
  18  5.70063e-05
  19  0.689797
  20  0.000141449
  21  18.3776
  22  0.00013576
  23  1.60633
  24  5.04513e-05
  25  0.00019876
  26  49.7081
  27  31.909
  28  6.16695e-05
  29  0.246675
  30  0.214814
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.341e+00  2.148e-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:  8.930e-01  2.467e-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: 3.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447169/likelihoodResults_469756801_470016001_4FGL_J1216.2+0537_daily_bin889.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) = 6702.71374027
delta logL = -0.000732736074497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6702.71300767
delta logL = -1.44126715895e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6702.713     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10262E-03    1.8698        .18142E-01** at limit **
   2  Index         1.9104        8.0975        .50000        .34757E-04
   3  Normalizat    .89304        .25561E-02    .31928E-03    .10646E-03
   4  Prefactor     1.3412        .22951E-02    .23824E-03    .43615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102616
  Index      = 1.91042
  Normalizat = 0.893044
  Prefactor  = 1.34119
 **********
 **   18 **HESSE 
 **********

 FCN=   6702.713     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10262E-03    43.450        .21608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9104        5.5398        .50000       -.66609    
   3  Normalizat    .89304        .12399E-01    .12771E-04   -.96705    
   4  Prefactor     1.3412        .11133E-01    .47648E-04   -.82090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91564e-08
Minuit parameter uncertainties:
  1  0.0213398
  2  178.76
  3  0.0123986
  4  0.0111328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447169': 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) = 6702.71300664
delta logL = 8.87541318662e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.026e-04  2.134e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.910e+00  1.788e+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:  1.341e+00  1.113e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  8.930e-01  1.240e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/447169/cmap_HighResolution_469756801_470016001_4FGL_J1216.2+0537_daily_bin889.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-03', job_status='DONE', photon_flux_upper_limit='3.69e-08', time_completed='2021-09-05 06:07:48.587058', job_id='447169', GAL2='1.34', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630847268.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='8.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='889' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:07:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 447169: <4FGL_J1216.2+0537_daily_bin889> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin889 184.061 5.6248 469756801 470016001 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 :                                   940.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

