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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin669
RA = 184.061, Dec = 5.6248
tmin = 412732801, tmax = 412992001
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='446775', job_status='RUN', time_executed='2021-09-05 05:54:39.676652', time_epoch_executed='1630846479.68' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446775

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446775/ft1_4FGL_J1216.2+0537_daily_bin669.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446775/ft2_4FGL_J1216.2+0537_daily_bin669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446775/ft1_4FGL_J1216.2+0537_daily_bin669.fits outfile=/scratch/kocevski/446775/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin669.fits ra=184.061 dec=5.6248 rad=12.0 tmin=412732801.0 tmax=412992001.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.57
user 3.20
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446775/ft1_filtered_4FGL_J1216.2+0537_daily_bin669.fits" evtable="EVENTS" scfile=/scratch/kocevski/446775/ft2_4FGL_J1216.2+0537_daily_bin669.fits sctable="SC_DATA" outfile=/scratch/kocevski/446775/ltcube_412732801_412992001_4FGL_J1216.2+0537_daily_bin669.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/446775/ft2_4FGL_J1216.2+0537_daily_bin669.fits
.....................!
real 11.48
user 11.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446775/ft1_filtered_4FGL_J1216.2+0537_daily_bin669.fits evtable="EVENTS" scfile=/scratch/kocevski/446775/ft2_4FGL_J1216.2+0537_daily_bin669.fits sctable="SC_DATA" expcube=/scratch/kocevski/446775/ltcube_412732801_412992001_4FGL_J1216.2+0537_daily_bin669.fits outfile=/scratch/kocevski/446775/expmap_412732801_412992001_4FGL_J1216.2+0537_daily_bin669.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/446775/ltcube_412732801_412992001_4FGL_J1216.2+0537_daily_bin669.fits
.....................!
real 194.43
user 188.64
sys 5.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/446775/ft1_filtered_4FGL_J1216.2+0537_daily_bin669.fits scfile=/scratch/kocevski/446775/ft2_4FGL_J1216.2+0537_daily_bin669.fits outfile=/scratch/kocevski/446775/cmap_412732801_412992001_4FGL_J1216.2+0537_daily_bin669.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446775/ft1_filtered_4FGL_J1216.2+0537_daily_bin669.fits scfile=/scratch/kocevski/446775/ft2_4FGL_J1216.2+0537_daily_bin669.fits outfile=/scratch/kocevski/446775/cmap_HighResolution_412732801_412992001_4FGL_J1216.2+0537_daily_bin669.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/446775/ft1_filtered_4FGL_J1216.2+0537_daily_bin669.fits evtable="EVENTS" scfile=/scratch/kocevski/446775/ft2_4FGL_J1216.2+0537_daily_bin669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446775/Model_4FGL_J1216.2+0537_daily_bin669.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/446775/ft1_filtered_4FGL_J1216.2+0537_daily_bin669.fits.....................!
real 20.88
user 19.60
sys 1.18

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1052.03011933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1046.75768076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1879       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29202E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16076E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9654       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14151E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22260E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25201E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27420E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0601       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14167E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13319E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15180E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6737       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40992E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    15.679       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80978       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6195       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    132.23       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .45166E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    4.7240       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16787E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .36399E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.173       1.0000         .10000E-03   10000.    
    27 'norm      '    1.6409       1.0000         .10000E-03   10000.    
    28 'Prefactor '    74.226       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96298       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1046.673     FROM MIGRAD    STATUS=CONVERGED    276 CALLS      626 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2929        21.775        .35027E-02    .12711E-01
   2  Prefactor     .10011E-03    97.902        .91681E-02** at limit **
   3  Prefactor     .10028E-03    116.95        .91032E-02** at limit **
   4  Prefactor     10.253        20.576        .31734E-02    .12813E-01
   5  Prefactor     .10000E-03    16.113        .10258E-01** at limit **
   6  Prefactor     .10000E-03    10.643        .90712E-02** at limit **
   7  Prefactor     3.3550        1.0116         .0000         .0000    
   8  Prefactor     .10000E-03    .23916       -.24389E-05** at limit **
   9  Prefactor     .10000E-03    .25024       -.14765E-06** at limit **
  10  Prefactor     .10018E-03    .24810       -.21670E-05** at limit **
  11  Prefactor     5.0966        1.0086       -.32559E-06   -.23071E-03
  12  Prefactor     .10000E-03    .20674       -.24060E-06** at limit **
  13  Prefactor     .10000E-03    .20571       -.20757E-06** at limit **
  14  norm          .10000E-03    .26167        .11364E-05** at limit **
  15  norm          .10039E-03    .54143E-01    .89050E-06** at limit **
  16  Prefactor     .10000E-03    .21280        .70104E-06** at limit **
  17  norm          106.49        2.5956        .45940E-05   -.90415E-04
  18  Prefactor     .10008E-03    .38914        .79041E-05** at limit **
  19  norm          2.1906        .93231       -.19146E-06    .13998E-03
  20  Prefactor     .10000E-03    .20571       -.20441E-05** at limit **
  21  Prefactor     133.09        1.0032        .10872E-05   -.38480E-01
  22  Prefactor     .10015E-03    .21374        .31061E-05** at limit **
  23  norm          4.7198        1.0053        .10528E-06    .80733E-04
  24  Prefactor     .10051E-03    .20733       -.25271E-05** at limit **
  25  Prefactor     .10482E-03    .28372       -.12136E-05** at limit **
  26  Prefactor     32.388        1.0194        .77647E-05    .62634E-02
  27  norm          .10163E-03    .16999        .58023E-05** at limit **
  28  Prefactor     74.511        1.0019        .10859E-06   -.11229E-01
  29  Normalizat    .10000E-01    .25505        .54035E-05** at limit **
  30  Prefactor     .96003        1.3026       -.11828E-05   -.17504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.2929
  Prefactor  = 0.00010011
  Prefactor  = 0.00010028
  Prefactor  = 10.253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.35499
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100182
  Prefactor  = 5.09658
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 0.000100394
  Prefactor  = 0.000100004
  norm       = 106.493
  Prefactor  = 0.000100076
  norm       = 2.19057
  Prefactor  = 0.000100002
  Prefactor  = 133.087
  Prefactor  = 0.000100153
  norm       = 4.71982
  Prefactor  = 0.000100515
  Prefactor  = 0.00010482
  Prefactor  = 32.3879
  norm       = 0.000101634
  Prefactor  = 74.5113
  Normalizat = 0.01
  Prefactor  = 0.960028
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1046.673     FROM HESSE     STATUS=FAILED        21 CALLS      647 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2929        21.775        .35027E-02   -1.5132    
   2  Prefactor     .10011E-03    97.902        .91681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10028E-03    116.95        .91032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.253        20.576        .31734E-02   -1.5067    
   5  Prefactor     .10000E-03    16.113        .10258E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     549.80        546.37         .0000       -1.5342    
   8  Prefactor     .10000E-03    .23916       -.24389E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .25024       -.14765E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10018E-03    .24810       -.21670E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0966        1.0086       -.32559E-06   -1.5256    
  12  Prefactor     .10000E-03    .20674       -.24060E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20571       -.20757E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .26167        .11364E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10039E-03    .54143E-01    .89050E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .21280        .70104E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          106.49        2.5956        .45940E-05   -1.3640    
  18  Prefactor     .10008E-03    .38914        .79041E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1906        .93231       -.19146E-06   -1.5412    
  20  Prefactor     .10000E-03    .20571       -.20441E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     133.09        1.0032        .10872E-05   -1.3396    
  22  Prefactor     .10015E-03    .21374        .31061E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.7198        1.0053        .10528E-06   -1.5273    
  24  Prefactor     .10051E-03    .20733       -.25271E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10482E-03    .28372       -.12136E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     32.388        1.0194        .77647E-05   -1.4569    
  27  norm          .10163E-03    .16999        .58023E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     74.511        1.0019        .10859E-06   -1.3979    
  29  Normalizat    .10000E-01    .25505        .54035E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .96003        1.3026       -.11828E-05   -.94074    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.57088e-09
Minuit parameter uncertainties:
  1  21.7954
  2  0.00658886
  3  0.0114659
  4  20.5902
  5  6.06342e-05
  6  0.000113173
  7  1.01156
  8  2.35622e-05
  9  2.38879e-05
  10  0.000424442
  11  1.00858
  12  5.55041e-05
  13  4.47997e-05
  14  2.32372e-05
  15  0.000292066
  16  5.90621e-05
  17  2.59564
  18  0.000343641
  19  0.932315
  20  3.66116e-05
  21  1.00319
  22  0.000361471
  23  1.00527
  24  0.000653376
  25  0.00233885
  26  1.01936
  27  0.00105405
  28  1.00192
  29  3.4496e-06
  30  1.34933
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1046.67270621

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  5.550e-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:  9.600e-01  1.349e+00  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.000e-02  3.450e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 2.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.54e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446775/likelihoodResults_412732801_412992001_4FGL_J1216.2+0537_daily_bin669.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) = 1046.67283309
delta logL = -0.000126875006572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1046.67271037
delta logL = -4.16270654569e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11950E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2263       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96003       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=   1046.673     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      279 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10172E-03    155.49        .17560E-02** at limit **
   2  Index         2.1649        5.6434        .50000        .96634E-05
   3  Normalizat    .10000E-01    .54099E-02    .10849E-01** at limit **
   4  Prefactor     .96003        .17672E-01    .19111E-03    .29521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101725
  Index      = 2.16486
  Normalizat = 0.01
  Prefactor  = 0.960029
 **********
 **   18 **HESSE 
 **********

 FCN=   1046.673     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10172E-03    684.92        .35119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1649        6.0349        .50000       -.60289    
   3  Normalizat    .10000E-01    .25199E-01    .21698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96003        .38087E-01    .38222E-04   -.94074    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.85298e-09
Minuit parameter uncertainties:
  1  0.0695462
  2  496.458
  3  3.18392e-07
  4  0.038088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446775': 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) = 1046.67270652
delta logL = -3.09757524519e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.017e-04  6.955e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.165e+00  4.965e+02  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:  9.600e-01  3.809e-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.000e-02  3.184e-07  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/446775/cmap_HighResolution_412732801_412992001_4FGL_J1216.2+0537_daily_bin669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', job_status='DONE', photon_flux_upper_limit='2.05e-07', time_completed='2021-09-05 06:01:27.167417', job_id='446775', GAL2='0.96', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630846887.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.96', dlogl='-3.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='669' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 446775: <4FGL_J1216.2+0537_daily_bin669> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin669> 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) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:50:53 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:53 2021
Terminated at Sun Sep  5 06:01:28 2021
Results reported at Sun Sep  5 06:01:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin669 184.061 5.6248 412732801 412992001 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 :                                   346.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            636 sec.

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

