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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin622
RA = 184.061, Dec = 5.6248
tmin = 400550401, tmax = 400809601
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='446701', job_status='RUN', time_executed='2021-09-05 05:51:02.198621', time_epoch_executed='1630846262.2' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446701

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446701/ft1_4FGL_J1216.2+0537_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446701/ft2_4FGL_J1216.2+0537_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446701/ft1_4FGL_J1216.2+0537_daily_bin622.fits outfile=/scratch/kocevski/446701/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin622.fits ra=184.061 dec=5.6248 rad=12.0 tmin=400550401.0 tmax=400809601.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 4.42
user 4.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446701/ft2_4FGL_J1216.2+0537_daily_bin622.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/446701/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin622.fits evtable="EVENTS" outfile="/scratch/kocevski/446701/ft1_filtered_4FGL_J1216.2+0537_daily_bin622.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.55
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446701/ft1_filtered_4FGL_J1216.2+0537_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/446701/ft2_4FGL_J1216.2+0537_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/446701/ltcube_400550401_400809601_4FGL_J1216.2+0537_daily_bin622.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/446701/ft2_4FGL_J1216.2+0537_daily_bin622.fits
.....................!
real 11.85
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446701/ft1_filtered_4FGL_J1216.2+0537_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/446701/ft2_4FGL_J1216.2+0537_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/446701/ltcube_400550401_400809601_4FGL_J1216.2+0537_daily_bin622.fits outfile=/scratch/kocevski/446701/expmap_400550401_400809601_4FGL_J1216.2+0537_daily_bin622.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/446701/ltcube_400550401_400809601_4FGL_J1216.2+0537_daily_bin622.fits
.....................!
real 192.63
user 187.41
sys 4.72

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/446701/ft1_filtered_4FGL_J1216.2+0537_daily_bin622.fits scfile=/scratch/kocevski/446701/ft2_4FGL_J1216.2+0537_daily_bin622.fits outfile=/scratch/kocevski/446701/cmap_400550401_400809601_4FGL_J1216.2+0537_daily_bin622.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=184.061 yref=5.6248 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446701/ft1_filtered_4FGL_J1216.2+0537_daily_bin622.fits scfile=/scratch/kocevski/446701/ft2_4FGL_J1216.2+0537_daily_bin622.fits outfile=/scratch/kocevski/446701/cmap_HighResolution_400550401_400809601_4FGL_J1216.2+0537_daily_bin622.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/446701/ft1_filtered_4FGL_J1216.2+0537_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/446701/ft2_4FGL_J1216.2+0537_daily_bin622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446701/Model_4FGL_J1216.2+0537_daily_bin622.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/446701/ft1_filtered_4FGL_J1216.2+0537_daily_bin622.fits.....................!
real 53.20
user 51.75
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0318       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.616       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7407       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0077       1.0000         .10000E-03   10000.    
     8 'Prefactor '    103.86       1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.530       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.693       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0385       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5398       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .41221       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.395       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3093       1.0000         .10000E-03   10000.    
    23 'norm      '    12.503       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.0607       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .84627E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1599       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0397       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=   5846.505     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3920 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0314        4.1431       -.71355E-07    .45822E-05
   2  Prefactor     .10000E-03    10.314        .20832E-06** at limit **
   3  Prefactor     55.595        77.768        .12991E-05   -.49027E-05
   4  Prefactor     .10000E-03    3.7153        .23544E-06** at limit **
   5  Prefactor     .10000E-03    11.144       -.58424E-06** at limit **
   6  Prefactor     1.6980        27.668        .88690E-05    .41564E-04
   7  Prefactor     7.0040        20.575        .75587E-07   -.61116E-06
   8  Prefactor     104.01        93.914       -.69138E-05    .38896E-04
   9  Prefactor     66.515        52.531        .81522E-06   -.24318E-06
  10  Prefactor     23.685        32.191        .46910E-06    .58683E-06
  11  Prefactor     .10000E-03    1.2136        .29633E-09** at limit **
  12  Prefactor     .10000E-03    15.242       -.91951E-08** at limit **
  13  Prefactor     .10000E-03    4.5859       -.58310E-07** at limit **
  14  norm          3.0382        2.4898       -.30468E-07   -.14962E-05
  15  norm          3.5388        3.5860        .18320E-06   -.25034E-04
  16  Prefactor     .10000E-03    12.943       -.37951E-06** at limit **
  17  norm          .10000E-03    28.036       -.14700E-06** at limit **
  18  Prefactor     .10000E-03    44.355       -.34593E-07** at limit **
  19  norm          .41219        .66774        .73893E-08    .69329E-05
  20  Prefactor     .10000E-03    7.6529       -.20081E-06** at limit **
  21  Prefactor     15.387        32.994        .94371E-06    .12712E-04
  22  Prefactor     5.3095        9.6186       -.10316E-07    .84174E-06
  23  norm          12.503        2.8313        .25163E-08    .62517E-04
  24  Prefactor     7.0601        6.6408       -.65974E-08    .13381E-05
  25  Prefactor     .10000E-03    15.510        .12165E-07** at limit **
  26  Prefactor     .10000E-03    16.855        .30859E-06** at limit **
  27  norm          .10000E-03    24.943        .99598E-07** at limit **
  28  Prefactor     .10003E-03    7.7644       -.68770E-06** at limit **
  29  Normalizat    1.1603        .23058       -.74222E-06    .84783E-04
  30  Prefactor     1.0394        .18460        .61277E-06    .67679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03138
  Prefactor  = 0.0001
  Prefactor  = 55.5947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.69799
  Prefactor  = 7.00401
  Prefactor  = 104.01
  Prefactor  = 66.5147
  Prefactor  = 23.6848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.03823
  norm       = 3.53882
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.412194
  Prefactor  = 0.0001
  Prefactor  = 15.3871
  Prefactor  = 5.30955
  norm       = 12.5028
  Prefactor  = 7.06014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100034
  Normalizat = 1.16028
  Prefactor  = 1.03941
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.505     FROM HESSE     STATUS=OK           586 CALLS     4506 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0314        4.1319        .17454E-03   -1.5360    
   2  Prefactor     .10000E-03    10.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.595        77.806        .53788E-04   -1.4215    
   4  Prefactor     .10000E-03    3.7220        .14397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6980        27.936        .15899E-02   -1.5447    
   7  Prefactor     7.0040        20.562        .15155E-03   -1.5179    
   8  Prefactor     104.01        94.569        .19727E-03   -1.3665    
   9  Prefactor     66.515        52.696        .49205E-04   -1.4075    
  10  Prefactor     23.685        32.155        .82293E-04   -1.4734    
  11  Prefactor     .10000E-03    1.2199        .82239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5904        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0382        2.4840        .10410E-03   -1.5359    
  15  norm          3.5388        3.5233        .65913E-03   -1.5332    
  16  Prefactor     .10000E-03    12.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    28.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    44.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .41219        .63474        .68427E-04   -1.5580    
  20  Prefactor     .10000E-03    7.6994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.387        33.124        .10208E-03   -1.4923    
  22  Prefactor     5.3095        9.5923        .17443E-03   -1.5247    
  23  norm          12.503        2.8152        .57258E-04   -1.5001    
  24  Prefactor     7.0601        6.6413        .15097E-03   -1.5176    
  25  Prefactor     .10000E-03    15.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    25.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10003E-03    61.680        .40578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1603        .27254        .29080E-03   -.87839    
  30  Prefactor     1.0394        .21895        .25993E-03   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7623e-10
Minuit parameter uncertainties:
  1  4.13229
  2  1.08687e-05
  3  77.9484
  4  1.12015e-05
  5  3.89179e-05
  6  13.7818
  7  20.5832
  8  94.7066
  9  52.7327
  10  32.1782
  11  2.01102e-07
  12  3.74282e-06
  13  4.07905e-06
  14  2.48411
  15  3.52349
  16  7.7841e-06
  17  2.32928e-05
  18  1.7901e-06
  19  0.634755
  20  1.3041e-05
  21  33.1634
  22  9.59505
  23  2.81519
  24  6.64199
  25  5.07602e-06
  26  9.55302e-06
  27  1.26654e-05
  28  0.00291563
  29  0.272868
  30  0.21914
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.743e-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.039e+00  2.191e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.160e+00  2.729e-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: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446701/likelihoodResults_400550401_400809601_4FGL_J1216.2+0537_daily_bin622.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) = 5846.50564452
delta logL = -0.000311915901875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5846.17385308
delta logL = 0.331479522386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37495E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.2241       1.0000          .0000       10.000    
     3 'Normalizat'    1.0944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0753       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=   5846.174     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      333 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37406E-02    .99258E-01    .97867E-03    .15129E-01
   2  Index         5.2249        2.3165        .76992E-01    .22434E-03
   3  Normalizat    1.0945        .45608E-01    .67338E-01    .24689E-04
   4  Prefactor     1.0753        .39047E-01    .57900E-01    .25987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00374057
  Index      = 5.22488
  Normalizat = 1.09447
  Prefactor  = 1.0753
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.174     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      366 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37406E-02    .33330        .61407E-05   -1.5696    
   2  Index         5.2249        7.3378        .46996E-02    .44991E-01
   3  Normalizat    1.0945        .19880        .29791E-03   -.89930    
   4  Prefactor     1.0753        .16672        .25603E-03   -.90260    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11108e-06
Minuit parameter uncertainties:
  1  0.0696678
  2  5.70757
  3  0.198932
  4  0.166805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446701': 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) = 5846.17385298
delta logL = 0.331479626384

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  3.741e-03  6.967e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  5.225e+00  5.708e+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:  1.075e+00  1.668e-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.094e+00  1.989e-01  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/446701/cmap_HighResolution_400550401_400809601_4FGL_J1216.2+0537_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-05 06:05:29.917619', job_id='446701', GAL2='1.08', fit_tolerance='1e-08', EG2='1.09', EG='1.16', time_epoch_completed='1630847129.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.31e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='622' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:05:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 446701: <4FGL_J1216.2+0537_daily_bin622> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin622 184.061 5.6248 400550401 400809601 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 :                                   862.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

