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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin677
RA = 184.061, Dec = 5.6248
tmin = 414806401, tmax = 415065601
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='446787', job_status='RUN', time_executed='2021-09-05 05:53:11.618586', time_epoch_executed='1630846391.62' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446787/ft1_4FGL_J1216.2+0537_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446787/ft2_4FGL_J1216.2+0537_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446787/ft1_4FGL_J1216.2+0537_daily_bin677.fits outfile=/scratch/kocevski/446787/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin677.fits ra=184.061 dec=5.6248 rad=12.0 tmin=414806401.0 tmax=415065601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.89
user 5.64
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446787/ft1_filtered_4FGL_J1216.2+0537_daily_bin677.fits" evtable="EVENTS" scfile=/scratch/kocevski/446787/ft2_4FGL_J1216.2+0537_daily_bin677.fits sctable="SC_DATA" outfile=/scratch/kocevski/446787/ltcube_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.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/446787/ft2_4FGL_J1216.2+0537_daily_bin677.fits
.....................!
real 12.98
user 12.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446787/ft1_filtered_4FGL_J1216.2+0537_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/446787/ft2_4FGL_J1216.2+0537_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/446787/ltcube_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.fits outfile=/scratch/kocevski/446787/expmap_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.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/446787/ltcube_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.fits
.....................!
real 190.49
user 185.35
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/446787/ft1_filtered_4FGL_J1216.2+0537_daily_bin677.fits scfile=/scratch/kocevski/446787/ft2_4FGL_J1216.2+0537_daily_bin677.fits outfile=/scratch/kocevski/446787/cmap_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=184.061 yref=5.6248 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.37
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/446787/ft1_filtered_4FGL_J1216.2+0537_daily_bin677.fits', '/scratch/kocevski/446787/ft2_4FGL_J1216.2+0537_daily_bin677.fits', expMap='/scratch/kocevski/446787/expmap_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.fits', expCube='/scratch/kocevski/446787/ltcube_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/446787/Model_4FGL_J1216.2+0537_daily_bin677.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/446787/ft1_filtered_4FGL_J1216.2+0537_daily_bin677.fits
Spacecraft file(s): /scratch/kocevski/446787/ft2_4FGL_J1216.2+0537_daily_bin677.fits
Exposure map: /scratch/kocevski/446787/expmap_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.fits
Exposure cube: /scratch/kocevski/446787/ltcube_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/446787/Model_4FGL_J1216.2+0537_daily_bin677.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3949.23943105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0866       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11197E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.588       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4600       1.0000         .10000E-03   10000.    
    14 'norm      '    .24426       1.0000         .10000E-03   10000.    
    15 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.5465       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59607       1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.785       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.110       1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17819E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.1236       1.0000         .10000E-03   10000.    
    27 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4114       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67806       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=   3949.203     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4505 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0857        5.1562       -.11684E-05   -.43169E-03
   2  Prefactor     .10000E-03    51.186       -.41407E-07** at limit **
   3  Prefactor     .10000E-03    117.91        .26490E-05** at limit **
   4  Prefactor     3.0131        6.5918       -.66485E-06   -.20713E-03
   5  Prefactor     12.588        13.310       -.37748E-06   -.11912E-03
   6  Prefactor     .10000E-03    7.8374       -.57331E-07** at limit **
   7  Prefactor     .10000E-03    35.673        .27038E-06** at limit **
   8  Prefactor     .10000E-03    54.383       -.51384E-06** at limit **
   9  Prefactor     .10000E-03    43.838        .29646E-06** at limit **
  10  Prefactor     .10000E-03    50.368        .38851E-06** at limit **
  11  Prefactor     .10000E-03    1.3657       -.28452E-09** at limit **
  12  Prefactor     .10000E-03    22.847       -.67854E-06** at limit **
  13  Prefactor     3.5093        60.670       -.52548E-06   -.18314E-03
  14  norm          .23262        31.199       -.39002E-05    .46726E-03
  15  norm          .10001E-03    3.8877        .10452E-06** at limit **
  16  Prefactor     .10000E-03    13.115        .71042E-07** at limit **
  17  norm          .10000E-03    56.641        .25609E-07** at limit **
  18  Prefactor     .10000E-03    65.854       -.43861E-06** at limit **
  19  norm          3.5461        1.0332        .23205E-07   -.71203E-03
  20  Prefactor     .59814        70.141        .16640E-05    .36091E-03
  21  Prefactor     47.738        49.256       -.86388E-06    .34979E-04
  22  Prefactor     29.111        15.241        .39749E-07    .62962E-04
  23  norm          .10000E-03    1.2578        .11337E-06** at limit **
  24  Prefactor     .10000E-03    5.8084        .10952E-06** at limit **
  25  Prefactor     .10001E-03    243.09        .49538E-05** at limit **
  26  Prefactor     8.1334        65.265       -.66904E-06    .25770E-05
  27  norm          .10000E-03    19.722        .57252E-06** at limit **
  28  Prefactor     .10000E-03    4.9565       -.15222E-06** at limit **
  29  Normalizat    1.4116        .27886       -.32149E-05   -.38601E-04
  30  Prefactor     .67784        .22752        .43603E-05    .48511E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.08574
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.01309
  Prefactor  = 12.5877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50933
  norm       = 0.232618
  norm       = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.54611
  Prefactor  = 0.598144
  Prefactor  = 47.7382
  Prefactor  = 29.1113
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 8.13337
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.4116
  Prefactor  = 0.677844
 **********
 **   18 **HESSE 
 **********

 FCN=   3949.203     FROM HESSE     STATUS=OK           582 CALLS     5087 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0857        5.2002        .21623E-03   -1.5419    
   2  Prefactor     .10000E-03    51.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    117.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0131        6.5845        .23268E-03   -1.5361    
   5  Prefactor     12.588        13.415        .11290E-03   -1.4998    
   6  Prefactor     .10000E-03    7.8511        .17183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    54.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3706        .71719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5093        587.68        .21741E-03   -1.5333    
  14  norm          .23262        364.01        .17658E-02   -1.5612    
  15  norm          .10001E-03    14.482        .19725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    56.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    65.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5461        1.0706        .30515E-04   -1.5331    
  20  Prefactor     .59814        119.68        .44878E-02   -1.5553    
  21  Prefactor     47.738        53.747        .58007E-04   -1.4325    
  22  Prefactor     29.111        15.242        .74257E-04   -1.4628    
  23  norm          .10000E-03    1.2920        .13729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.8405        .14789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    247.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.1334        65.214        .14067E-03   -1.5138    
  27  norm          .10000E-03    19.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.9579        .13661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4116        .31375        .24689E-03   -.80294    
  30  Prefactor     .67784        .24970        .28137E-03   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9898e-08
Minuit parameter uncertainties:
  1  5.20131
  2  4.19003e-06
  3  0.000588997
  4  6.5861
  5  13.4183
  6  4.66441e-06
  7  4.57035e-07
  8  8.53721e-05
  9  4.57408e-05
  10  0.000221125
  11  1.12184e-06
  12  7.76653e-05
  13  91.7558
  14  18.5137
  15  0.000707045
  16  5.42302e-06
  17  4.2859e-06
  18  8.64061e-05
  19  1.07062
  20  16.9551
  21  53.8016
  22  15.2439
  23  1.42147e-06
  24  6.94054e-06
  25  0.00351932
  26  46.13
  27  5.26943e-05
  28  1.05862e-05
  29  0.314181
  30  0.250108
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  7.767e-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:  6.778e-01  2.501e-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.412e+00  3.142e-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: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446787/likelihoodResults_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3949.20311444
delta logL = -0.000208183193536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3949.20290624
delta logL = 1.40853444464e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1029       1.0000          .0000       10.000    
     3 'Normalizat'    1.4116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67785       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=   3949.203     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    179.99        .90712E-02** at limit **
   2  Index         2.1065        7.1771        .50000       -.14211E-05
   3  Normalizat    1.4116        .17723E-01    .55834E-01    .25640E-05
   4  Prefactor     .67784        .14631E-01    .63601E-01    .15182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10648
  Normalizat = 1.4116
  Prefactor  = 0.677842
 **********
 **   18 **HESSE 
 **********

 FCN=   3949.203     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6182.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1065        8.8713        .50000       -.61714    
   3  Normalizat    1.4116        .77743E-01    .24689E-03   -.80294    
   4  Prefactor     .67784        .64101E-01    .28137E-03   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12166e-10
Minuit parameter uncertainties:
  1  2.46463e-05
  2  43.3248
  3  0.0777498
  4  0.064108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446787': 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) = 3949.20290624
delta logL = 1.67815414898e-08

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.465e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.106e+00  4.332e+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:  6.778e-01  6.411e-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:  1.412e+00  7.775e-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/446787/cmap_HighResolution_414806401_415065601_4FGL_J1216.2+0537_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-05 06:07:19.189386', job_id='446787', GAL2='0.68', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630847239.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='677' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:07:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 446787: <4FGL_J1216.2+0537_daily_bin677> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin677 184.061 5.6248 414806401 415065601 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 :                                   731.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

