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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin203
RA = 184.061, Dec = 5.6248
tmin = 291945601, tmax = 292204801
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='611242', job_status='RUN', time_executed='2021-09-05 14:00:47.720834', time_epoch_executed='1630875647.72' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611242

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611242/ft1_4FGL_J1216.2+0537_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611242/ft2_4FGL_J1216.2+0537_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611242/ft1_4FGL_J1216.2+0537_daily_bin203.fits outfile=/scratch/kocevski/611242/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin203.fits ra=184.061 dec=5.6248 rad=12.0 tmin=291945601.0 tmax=292204801.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.75
user 3.52
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611242/ft2_4FGL_J1216.2+0537_daily_bin203.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/611242/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin203.fits evtable="EVENTS" outfile="/scratch/kocevski/611242/ft1_filtered_4FGL_J1216.2+0537_daily_bin203.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611242/ft1_filtered_4FGL_J1216.2+0537_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/611242/ft2_4FGL_J1216.2+0537_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/611242/ltcube_291945601_292204801_4FGL_J1216.2+0537_daily_bin203.fits outfile=/scratch/kocevski/611242/expmap_291945601_292204801_4FGL_J1216.2+0537_daily_bin203.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/611242/ltcube_291945601_292204801_4FGL_J1216.2+0537_daily_bin203.fits
.....................!
real 190.47
user 185.59
sys 4.46

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/611242/ft1_filtered_4FGL_J1216.2+0537_daily_bin203.fits scfile=/scratch/kocevski/611242/ft2_4FGL_J1216.2+0537_daily_bin203.fits outfile=/scratch/kocevski/611242/cmap_291945601_292204801_4FGL_J1216.2+0537_daily_bin203.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/611242/ft1_filtered_4FGL_J1216.2+0537_daily_bin203.fits scfile=/scratch/kocevski/611242/ft2_4FGL_J1216.2+0537_daily_bin203.fits outfile=/scratch/kocevski/611242/cmap_HighResolution_291945601_292204801_4FGL_J1216.2+0537_daily_bin203.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5938       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.877       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.132       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.510       1.0000         .10000E-03   10000.    
     8 'Prefactor '    73.539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.506       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14387E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42524E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .18906E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6279       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4663       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5266       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.920       1.0000         .10000E-03   10000.    
    19 'norm      '    5.9176       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8010       1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.669       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.566       1.0000         .10000E-03   10000.    
    23 'norm      '    2.9733       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.4284       1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.705       1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.302       1.0000         .10000E-03   10000.    
    27 'norm      '    .11655E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.982       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69329       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0702       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=   6160.214     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     4505 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5932        3.8043        .11897E-05    .74081E-04
   2  Prefactor     .10000E-03    6.2104        .57289E-07** at limit **
   3  Prefactor     24.987        110.26        .19668E-05    .14507E-04
   4  Prefactor     .10000E-03    6.8777        .16791E-05** at limit **
   5  Prefactor     .10000E-03    3.7537        .25611E-06** at limit **
   6  Prefactor     20.118        31.766        .38985E-06    .21859E-04
   7  Prefactor     46.507        22.056        .12892E-06   -.65928E-04
   8  Prefactor     73.670        166.84        .68581E-06    .18392E-04
   9  Prefactor     .10000E-03    18.206        .73434E-06** at limit **
  10  Prefactor     27.527        24.078       -.46984E-06   -.19910E-03
  11  Prefactor     .10001E-03    2.5739       -.11476E-05** at limit **
  12  Prefactor     .10000E-03    50.160       -.16332E-06** at limit **
  13  Prefactor     .10011E-03    10.010        .13854E-05** at limit **
  14  norm          .10000E-03    1.6873        .22069E-06** at limit **
  15  norm          5.6288        5.5029        .50414E-06   -.11880E-03
  16  Prefactor     5.4206        85.776        .26732E-05   -.14968E-04
  17  norm          5.5453        77.049       -.60927E-06   -.34192E-05
  18  Prefactor     44.004        168.04       -.16850E-05    .73139E-06
  19  norm          5.9179        1.0391       -.66183E-07   -.15939E-02
  20  Prefactor     5.8103        12.655       -.58907E-06    .29425E-08
  21  Prefactor     50.609        43.219        .11253E-05   -.31470E-04
  22  Prefactor     13.567        11.168       -.25305E-06   -.76903E-04
  23  norm          2.9730        1.8433        .98704E-07   -.63003E-04
  24  Prefactor     6.4297        10.670        .49842E-05    .16192E-03
  25  Prefactor     33.714        37.991       -.48748E-06   -.88037E-05
  26  Prefactor     31.341        45.658        .36200E-06    .31222E-04
  27  norm          .10000E-03    26.593       -.60068E-06** at limit **
  28  Prefactor     15.981        16.905        .24162E-06    .28567E-06
  29  Normalizat    .69323        .23987       -.15384E-05   -.92773E-04
  30  Prefactor     1.0703        .18302       -.75136E-06   -.14389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59321
  Prefactor  = 0.0001
  Prefactor  = 24.987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1182
  Prefactor  = 46.5074
  Prefactor  = 73.67
  Prefactor  = 0.0001
  Prefactor  = 27.5267
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100105
  norm       = 0.000100001
  norm       = 5.6288
  Prefactor  = 5.42065
  norm       = 5.54532
  Prefactor  = 44.0038
  norm       = 5.91793
  Prefactor  = 5.81033
  Prefactor  = 50.6093
  Prefactor  = 13.567
  norm       = 2.973
  Prefactor  = 6.42966
  Prefactor  = 33.7136
  Prefactor  = 31.3408
  norm       = 0.0001
  Prefactor  = 15.9812
  Normalizat = 0.693235
  Prefactor  = 1.07032
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.214     FROM HESSE     STATUS=OK           592 CALLS     5097 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5932        3.8024        .22214E-03   -1.5456    
   2  Prefactor     .10000E-03    6.2120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.987        110.19        .80314E-04   -1.4708    
   4  Prefactor     .10000E-03    6.9233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7748        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.118        31.755        .89267E-04   -1.4811    
   7  Prefactor     46.507        22.049        .58793E-04   -1.4343    
   8  Prefactor     73.670        166.55        .23409E-03   -1.3989    
   9  Prefactor     .10000E-03    18.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.527        23.387        .76387E-04   -1.4658    
  11  Prefactor     .10001E-03    5.6370        .23055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10011E-03    59.111        .42275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.9248        .17990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6288        5.4702        .14797E-03   -1.5233    
  16  Prefactor     5.4206        85.632        .17186E-03   -1.5242    
  17  norm          5.5453        76.125        .17091E-03   -1.5237    
  18  Prefactor     44.004        167.50        .60494E-04   -1.4380    
  19  norm          5.9179        1.0381        .29147E-04   -1.5221    
  20  Prefactor     5.8103        12.568        .16675E-03   -1.5226    
  21  Prefactor     50.609        43.099        .56339E-04   -1.4284    
  22  Prefactor     13.567        11.152        .54374E-03   -1.4971    
  23  norm          2.9730        1.8358        .79379E-04   -1.5363    
  24  Prefactor     6.4297        10.746        .79150E-03   -1.5201    
  25  Prefactor     33.714        37.950        .69024E-04   -1.4546    
  26  Prefactor     31.341        45.591        .71616E-04   -1.4588    
  27  norm          .10000E-03    26.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.981        16.899        .10018E-03   -1.4908    
  29  Normalizat    .69323        .26879        .35460E-03   -1.0416    
  30  Prefactor     1.0703        .20715        .24487E-03   -.90421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63637e-09
Minuit parameter uncertainties:
  1  3.80294
  2  5.9652e-06
  3  105.273
  4  2.9824e-05
  5  7.09643e-06
  6  31.7819
  7  22.0531
  8  167.622
  9  3.36524e-05
  10  23.3945
  11  0.000438124
  12  4.70639e-05
  13  0.00499377
  14  0.000151268
  15  5.47073
  16  43.1628
  17  41.1554
  18  169.337
  19  1.03809
  20  12.5737
  21  43.1251
  22  11.1536
  23  1.83583
  24  10.7489
  25  37.9769
  26  45.6413
  27  0.00016772
  28  16.9039
  29  0.269304
  30  0.207307
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.070e+00  2.073e-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:  6.932e-01  2.693e-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: 8.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611242/likelihoodResults_291945601_292204801_4FGL_J1216.2+0537_daily_bin203.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) = 6160.21424042
delta logL = -9.44866624195e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6160.21414658
delta logL = -6.4809955802e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9901       1.0000          .0000       10.000    
     3 'Normalizat'    .69340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0703       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=   6160.214     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      246 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    900.57        .18142E-02** at limit **
   2  Index         2.0834        8.6492        .50000       -.22825E-04
   3  Normalizat    .69324        .18878E-01    .35460E-03    .32381E-05
   4  Prefactor     1.0703        .16028E-01    .24487E-03   -.72890E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100051
  Index      = 2.08336
  Normalizat = 0.693235
  Prefactor  = 1.07032
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.214     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    6723.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0834        6.0129        .50000       -.62282    
   3  Normalizat    .69324        .40847E-01    .14184E-04   -1.0416    
   4  Prefactor     1.0703        .34682E-01    .97950E-05   -.90421    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.7895e-10
Minuit parameter uncertainties:
  1  0.0284279
  2  29.984
  3  0.0408485
  4  0.0346823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611242': 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) = 6160.21414561
delta logL = 3.18281308864e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.001e-04  2.843e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.083e+00  2.998e+01  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.070e+00  3.468e-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:  6.932e-01  4.085e-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/611242/cmap_HighResolution_291945601_292204801_4FGL_J1216.2+0537_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', job_status='DONE', photon_flux_upper_limit='8.95e-08', time_completed='2021-09-05 14:16:16.420948', job_id='611242', GAL2='1.07', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630876576.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='203' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:16:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 611242: <4FGL_J1216.2+0537_daily_bin203> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin203> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:00:28 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:00:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 14:00:30 2021
Terminated at Sun Sep  5 14:16:17 2021
Results reported at Sun Sep  5 14:16:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin203 184.061 5.6248 291945601 292204801 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 :                                   928.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            949 sec.

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

