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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin964
RA = 184.061, Dec = 5.6248
tmin = 489196801, tmax = 489456001
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='447292', job_status='RUN', time_executed='2021-09-05 05:54:49.364812', time_epoch_executed='1630846489.36' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='964'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447292

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447292/ft1_4FGL_J1216.2+0537_daily_bin964.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447292/ft2_4FGL_J1216.2+0537_daily_bin964.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447292/ft1_4FGL_J1216.2+0537_daily_bin964.fits outfile=/scratch/kocevski/447292/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin964.fits ra=184.061 dec=5.6248 rad=12.0 tmin=489196801.0 tmax=489456001.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.50
user 4.70
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447292/ft2_4FGL_J1216.2+0537_daily_bin964.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/447292/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin964.fits evtable="EVENTS" outfile="/scratch/kocevski/447292/ft1_filtered_4FGL_J1216.2+0537_daily_bin964.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.35
sys 0.12

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447292/ft1_filtered_4FGL_J1216.2+0537_daily_bin964.fits evtable="EVENTS" scfile=/scratch/kocevski/447292/ft2_4FGL_J1216.2+0537_daily_bin964.fits sctable="SC_DATA" expcube=/scratch/kocevski/447292/ltcube_489196801_489456001_4FGL_J1216.2+0537_daily_bin964.fits outfile=/scratch/kocevski/447292/expmap_489196801_489456001_4FGL_J1216.2+0537_daily_bin964.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/447292/ltcube_489196801_489456001_4FGL_J1216.2+0537_daily_bin964.fits
.....................!
real 190.64
user 185.41
sys 4.40

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/447292/ft1_filtered_4FGL_J1216.2+0537_daily_bin964.fits scfile=/scratch/kocevski/447292/ft2_4FGL_J1216.2+0537_daily_bin964.fits outfile=/scratch/kocevski/447292/cmap_489196801_489456001_4FGL_J1216.2+0537_daily_bin964.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447292/ft1_filtered_4FGL_J1216.2+0537_daily_bin964.fits scfile=/scratch/kocevski/447292/ft2_4FGL_J1216.2+0537_daily_bin964.fits outfile=/scratch/kocevski/447292/cmap_HighResolution_489196801_489456001_4FGL_J1216.2+0537_daily_bin964.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8397       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7967       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2148       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27779       1.0000         .10000E-03   10000.    
    10 'Prefactor '    79.434       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5903       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.4610       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12808E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11733E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.759       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.003       1.0000         .10000E-03   10000.    
    23 'norm      '    6.2643       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .55021       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.901       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .65816       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0864       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=   4314.945     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4045 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8399        2.9657       -.27819E-07   -.48854E-05
   2  Prefactor     4.7975        17.811       -.61576E-07    .84492E-05
   3  Prefactor     .10000E-03    34.318       -.17318E-06** at limit **
   4  Prefactor     .10000E-03    8.4275       -.10984E-05** at limit **
   5  Prefactor     .10000E-03    3.5939       -.52577E-07** at limit **
   6  Prefactor     9.2149        13.836        .16577E-06   -.29510E-05
   7  Prefactor     .10000E-03    40.603       -.61470E-06** at limit **
   8  Prefactor     .10000E-03    43.128        .15378E-06** at limit **
   9  Prefactor     .14485E-02    133.98       -.11073E-04** at limit **
  10  Prefactor     79.421        40.374        .12281E-06    .32607E-04
  11  Prefactor     2.5905        2.7815        .10547E-06    .22804E-06
  12  Prefactor     .10000E-03    15.080        .18728E-06** at limit **
  13  Prefactor     .10000E-03    63.197       -.14135E-05** at limit **
  14  norm          .10000E-03    2.2486       -.17810E-06** at limit **
  15  norm          8.4608        5.3784       -.35297E-06   -.42303E-04
  16  Prefactor     .10000E-03    12.097        .12546E-06** at limit **
  17  norm          .10000E-03    26.616        .33393E-06** at limit **
  18  Prefactor     .10000E-03    91.699       -.19411E-09** at limit **
  19  norm          .10000E-03    .48852        .50218E-06** at limit **
  20  Prefactor     .10000E-03    18.005        .40839E-05** at limit **
  21  Prefactor     31.767        41.515       -.29188E-06   -.53811E-04
  22  Prefactor     14.988        12.418       -.38090E-06    .98727E-04
  23  norm          6.2623        2.6783       -.47445E-07   -.26315E-03
  24  Prefactor     .61181        45.995        .80882E-05    .25182E-03
  25  Prefactor     .10000E-03    31.447        .33780E-06** at limit **
  26  Prefactor     .10000E-03    44.366        .18960E-06** at limit **
  27  norm          .10000E-03    14.384        .38829E-07** at limit **
  28  Prefactor     26.896        19.058        .26791E-06   -.72171E-04
  29  Normalizat    .65817        .24746       -.19520E-05    .70048E-04
  30  Prefactor     1.0864        .19072        .24733E-06   -.29129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.8399
  Prefactor  = 4.79753
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.21486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00144846
  Prefactor  = 79.421
  Prefactor  = 2.59049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.46082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.7669
  Prefactor  = 14.9879
  norm       = 6.2623
  Prefactor  = 0.611813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.8961
  Normalizat = 0.658175
  Prefactor  = 1.08641
 **********
 **   18 **HESSE 
 **********

 FCN=   4314.945     FROM HESSE     STATUS=OK           600 CALLS     4645 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8399        2.9429        .13932E-03   -1.5437    
   2  Prefactor     4.7975        17.801        .18369E-03   -1.5270    
   3  Prefactor     .10000E-03    34.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.890        .34827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6006        .12161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.2149        13.847        .13203E-03   -1.5101    
   7  Prefactor     .10000E-03    40.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    43.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14485E-02    52.705        .12140       -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     79.421        40.398        .22530E-03   -1.3923    
  11  Prefactor     2.5905        2.7777        .10957E-03   -1.5386    
  12  Prefactor     .10000E-03    15.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    64.976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2839        .96068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.4608        5.4115        .10889E-03   -1.5126    
  16  Prefactor     .10000E-03    12.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    26.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    91.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.4763        .78359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.767        41.843        .71100E-04   -1.4580    
  22  Prefactor     14.988        12.355        .10340E-03   -1.4933    
  23  norm          6.2623        2.6631        .64691E-04   -1.5207    
  24  Prefactor     .61181        48.148        .41659E-02   -1.5552    
  25  Prefactor     .10000E-03    31.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    44.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    14.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     26.896        19.088        .77238E-04   -1.4670    
  29  Normalizat    .65817        .27708        .31825E-03   -1.0557    
  30  Prefactor     1.0864        .21328        .21718E-03   -.89902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74257e-09
Minuit parameter uncertainties:
  1  2.94315
  2  17.8209
  3  8.71373e-05
  4  0.00066023
  5  8.1403e-07
  6  13.8518
  7  2.51794e-05
  8  5.45029e-06
  9  0.533651
  10  40.4115
  11  2.77784
  12  1.78108e-05
  13  0.000115108
  14  3.19911e-06
  15  5.41184
  16  9.70387e-06
  17  1.13231e-05
  18  0.000170588
  19  2.29482e-05
  20  0.000313989
  21  41.8812
  22  12.3573
  23  2.66311
  24  10.8631
  25  6.70998e-05
  26  9.82686e-05
  27  7.7727e-06
  28  19.0924
  29  0.277665
  30  0.213451
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.781e-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.086e+00  2.135e-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.582e-01  2.777e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447292/likelihoodResults_489196801_489456001_4FGL_J1216.2+0537_daily_bin964.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) = 4314.94554591
delta logL = -0.000315024845804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4314.94523119
delta logL = -3.07722075377e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1220       1.0000          .0000       10.000    
     3 'Normalizat'    .65815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0864       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=   4314.945     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    480.87        .90712E-02** at limit **
   2  Index         2.1007        5.8557        .50000        .12319E-04
   3  Normalizat    .65817        .33415E-01    .71897E-01    .19248E-04
   4  Prefactor     1.0864        .28857E-01    .38127E-01    .19180E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10071
  Normalizat = 0.658173
  Prefactor  = 1.08642
 **********
 **   18 **HESSE 
 **********

 FCN=   4314.945     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    617.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1007        5.7025        .50000       -.61855    
   3  Normalizat    .65817        .38315E-01    .31823E-03   -1.0557    
   4  Prefactor     1.0864        .33155E-01    .21718E-03   -.89902    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.35266e-09
Minuit parameter uncertainties:
  1  0.000468843
  2  27.2996
  3  0.0383169
  4  0.0331558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447292': 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) = 4314.94523112
delta logL = -2.31572812481e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  4.688e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.101e+00  2.730e+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.086e+00  3.316e-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.582e-01  3.832e-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/447292/cmap_HighResolution_489196801_489456001_4FGL_J1216.2+0537_daily_bin964.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-05 06:08:01.179298', job_id='447292', GAL2='1.09', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630847281.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-2.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='964' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:08:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 447292: <4FGL_J1216.2+0537_daily_bin964> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin964> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:51:25 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:51:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:51:26 2021
Terminated at Sun Sep  5 06:08:01 2021
Results reported at Sun Sep  5 06:08:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin964 184.061 5.6248 489196801 489456001 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 :                                   720.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            996 sec.

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

