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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin336
RA = 184.061, Dec = 5.6248
tmin = 326419201, tmax = 326678401
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='443656', job_status='RUN', time_executed='2021-09-05 05:43:42.313304', time_epoch_executed='1630845822.31' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443656/ft1_4FGL_J1216.2+0537_daily_bin336.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443656/ft2_4FGL_J1216.2+0537_daily_bin336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443656/ft1_4FGL_J1216.2+0537_daily_bin336.fits outfile=/scratch/kocevski/443656/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin336.fits ra=184.061 dec=5.6248 rad=12.0 tmin=326419201.0 tmax=326678401.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 2.63
user 2.43
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443656/ft2_4FGL_J1216.2+0537_daily_bin336.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/443656/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin336.fits evtable="EVENTS" outfile="/scratch/kocevski/443656/ft1_filtered_4FGL_J1216.2+0537_daily_bin336.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.42
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443656/ft1_filtered_4FGL_J1216.2+0537_daily_bin336.fits" evtable="EVENTS" scfile=/scratch/kocevski/443656/ft2_4FGL_J1216.2+0537_daily_bin336.fits sctable="SC_DATA" outfile=/scratch/kocevski/443656/ltcube_326419201_326678401_4FGL_J1216.2+0537_daily_bin336.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/443656/ft2_4FGL_J1216.2+0537_daily_bin336.fits
.....................!
real 9.22
user 8.90
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443656/ft1_filtered_4FGL_J1216.2+0537_daily_bin336.fits evtable="EVENTS" scfile=/scratch/kocevski/443656/ft2_4FGL_J1216.2+0537_daily_bin336.fits sctable="SC_DATA" expcube=/scratch/kocevski/443656/ltcube_326419201_326678401_4FGL_J1216.2+0537_daily_bin336.fits outfile=/scratch/kocevski/443656/expmap_326419201_326678401_4FGL_J1216.2+0537_daily_bin336.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/443656/ltcube_326419201_326678401_4FGL_J1216.2+0537_daily_bin336.fits
.....................!
real 149.22
user 144.73
sys 3.78

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/443656/ft1_filtered_4FGL_J1216.2+0537_daily_bin336.fits scfile=/scratch/kocevski/443656/ft2_4FGL_J1216.2+0537_daily_bin336.fits outfile=/scratch/kocevski/443656/cmap_326419201_326678401_4FGL_J1216.2+0537_daily_bin336.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.56
user 0.33
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443656/ft1_filtered_4FGL_J1216.2+0537_daily_bin336.fits scfile=/scratch/kocevski/443656/ft2_4FGL_J1216.2+0537_daily_bin336.fits outfile=/scratch/kocevski/443656/cmap_HighResolution_326419201_326678401_4FGL_J1216.2+0537_daily_bin336.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.50
user 0.30
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4127       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    94.823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2604       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3065       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.019       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.423       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4035       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.133       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0788       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3946       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.6339       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .39892       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4353       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.639       1.0000         .10000E-03   10000.    
    23 'norm      '    7.6392       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14424E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    14.781       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.104       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85899       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1059       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=   6076.779     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3918 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4133        2.3190        .22898E-07   -.96877E-05
   2  Prefactor     .10000E-03    6.3116        .23198E-07** at limit **
   3  Prefactor     94.864        93.001       -.12595E-05   -.27917E-04
   4  Prefactor     3.2615        5.5427        .13962E-06   -.98509E-05
   5  Prefactor     1.3102        10.135        .22118E-05   -.24741E-04
   6  Prefactor     21.023        13.166       -.32060E-08   -.23278E-05
   7  Prefactor     30.431        22.460       -.15824E-06   -.24256E-04
   8  Prefactor     .10000E-03    21.976        .29170E-06** at limit **
   9  Prefactor     .10000E-03    34.397       -.16105E-06** at limit **
  10  Prefactor     7.7594        20.755       -.17883E-06   -.22276E-04
  11  Prefactor     1.4054        3.6201        .89811E-07   -.17341E-04
  12  Prefactor     .10000E-03    8.6439       -.11117E-06** at limit **
  13  Prefactor     23.086        26.454       -.23484E-05   -.12966E-03
  14  norm          2.0811        4.4261        .89330E-06   -.18300E-03
  15  norm          5.3913        4.9368       -.10098E-05   -.49197E-03
  16  Prefactor     .10000E-03    10.280        .78620E-07** at limit **
  17  norm          6.5720        120.54        .60258E-06   -.12441E-04
  18  Prefactor     .10000E-03    50.481       -.12678E-05** at limit **
  19  norm          .40121        .71060        .11046E-05   -.18826E-03
  20  Prefactor     4.4433        10.041        .57903E-06   -.37892E-04
  21  Prefactor     .10000E-03    27.436        .82613E-06** at limit **
  22  Prefactor     16.622        12.154       -.58580E-06   -.19660E-03
  23  norm          7.6361        2.3448       -.14368E-06   -.89503E-03
  24  Prefactor     .10000E-03    4.3632       -.28555E-07** at limit **
  25  Prefactor     .10000E-03    281.56        .12158E-04** at limit **
  26  Prefactor     .10000E-03    19.411       -.56875E-06** at limit **
  27  norm          14.776        18.563        .16299E-06   -.28930E-04
  28  Prefactor     12.110        13.871       -.19844E-07   -.64877E-05
  29  Normalizat    .85852        .22445        .71967E-06   -.32412E-03
  30  Prefactor     1.1060        .18033       -.88258E-06   -.20947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41326
  Prefactor  = 0.0001
  Prefactor  = 94.8645
  Prefactor  = 3.26148
  Prefactor  = 1.3102
  Prefactor  = 21.0233
  Prefactor  = 30.4307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.75943
  Prefactor  = 1.40538
  Prefactor  = 0.0001
  Prefactor  = 23.0859
  norm       = 2.0811
  norm       = 5.39133
  Prefactor  = 0.0001
  norm       = 6.572
  Prefactor  = 0.0001
  norm       = 0.401206
  Prefactor  = 4.44329
  Prefactor  = 0.0001
  Prefactor  = 16.6223
  norm       = 7.63614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7759
  Prefactor  = 12.1099
  Normalizat = 0.858521
  Prefactor  = 1.10601
 **********
 **   18 **HESSE 
 **********

 FCN=   6076.779     FROM HESSE     STATUS=OK           592 CALLS     4510 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4133        2.2828        .14747E-03   -1.5470    
   2  Prefactor     .10000E-03    6.3128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     94.864        93.034        .20637E-03   -1.3757    
   4  Prefactor     3.2615        5.5282        .11214E-02   -1.5347    
   5  Prefactor     1.3102        10.151        .19304E-02   -1.5479    
   6  Prefactor     21.023        13.180        .87364E-04   -1.4791    
   7  Prefactor     30.431        22.458        .72640E-04   -1.4604    
   8  Prefactor     .10000E-03    21.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7594        20.709        .14397E-03   -1.5151    
  11  Prefactor     1.4054        3.6030        .22606E-03   -1.5471    
  12  Prefactor     .10000E-03    8.6450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.086        26.568        .83282E-04   -1.4747    
  14  norm          2.0811        4.4254        .73184E-03   -1.5419    
  15  norm          5.3913        4.9526        .12332E-03   -1.5244    
  16  Prefactor     .10000E-03    10.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5720        122.04        .15580E-03   -1.5195    
  18  Prefactor     .10000E-03    50.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .40121        .71626        .72481E-04   -1.5581    
  20  Prefactor     4.4433        10.027        .95605E-03   -1.5286    
  21  Prefactor     .10000E-03    27.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.622        12.187        .98187E-04   -1.4892    
  23  norm          7.6361        2.3467        .62097E-04   -1.5155    
  24  Prefactor     .10000E-03    4.3782        .15899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    284.56        .41003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          14.776        18.559        .10418E-03   -1.4939    
  28  Prefactor     12.110        13.870        .11514E-03   -1.5012    
  29  Normalizat    .85852        .26387        .31570E-03   -.97933    
  30  Prefactor     1.1060        .21471        .23970E-03   -.89275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48847e-09
Minuit parameter uncertainties:
  1  2.28291
  2  3.43615e-07
  3  93.1777
  4  5.52903
  5  7.2953
  6  13.1816
  7  22.4647
  8  2.86999e-05
  9  3.55358e-05
  10  20.7285
  11  3.60356
  12  4.14692e-06
  13  26.5816
  14  4.4261
  15  4.953
  16  7.45823e-06
  17  56.7758
  18  0.000172866
  19  0.716274
  20  10.031
  21  5.11395e-05
  22  12.1891
  23  2.34671
  24  6.79714e-06
  25  0.000692917
  26  4.92495e-05
  27  18.5663
  28  13.8738
  29  0.264263
  30  0.21488
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  4.147e-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.106e+00  2.149e-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.585e-01  2.643e-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: 4.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443656/likelihoodResults_326419201_326678401_4FGL_J1216.2+0537_daily_bin336.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) = 6076.77917965
delta logL = -0.000544622092093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6076.77863511
delta logL = -8.16735337139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9982       1.0000          .0000       10.000    
     3 'Normalizat'    .85866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1059       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=   6076.779     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    229.28        .90712E-02** at limit **
   2  Index         1.9767        7.8184        .50000        .18807E-04
   3  Normalizat    .85853        .26947E-01    .71347E-01    .39985E-04
   4  Prefactor     1.1060        .23049E-01    .54214E-01    .25332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.97674
  Normalizat = 0.858525
  Prefactor  = 1.10601
 **********
 **   18 **HESSE 
 **********

 FCN=   6076.779     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    481.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9767        7.3007        .20000       -.64933    
   3  Normalizat    .85853        .40522E-01    .31571E-03   -.97933    
   4  Prefactor     1.1060        .34689E-01    .23970E-03   -.89275    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000122943
Minuit parameter uncertainties:
  1  0.00177028
  2  2373.27
  3  0.0405236
  4  0.0346901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443656': 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) = 6076.77863481
delta logL = 2.11069163925e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.770e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.977e+00  2.373e+03  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.106e+00  3.469e-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.585e-01  4.052e-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/443656/cmap_HighResolution_326419201_326678401_4FGL_J1216.2+0537_daily_bin336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-09-05 05:54:36.104724', job_id='443656', GAL2='1.11', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630846476.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='336' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:54:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 443656: <4FGL_J1216.2+0537_daily_bin336> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin336 184.061 5.6248 326419201 326678401 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 :                                   650.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

