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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin725
RA = 184.061, Dec = 5.6248
tmin = 427248001, tmax = 427507201
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='446865', job_status='RUN', time_executed='2021-09-05 05:53:06.055637', time_epoch_executed='1630846386.06' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446865

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446865/ft1_4FGL_J1216.2+0537_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446865/ft2_4FGL_J1216.2+0537_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446865/ft1_4FGL_J1216.2+0537_daily_bin725.fits outfile=/scratch/kocevski/446865/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin725.fits ra=184.061 dec=5.6248 rad=12.0 tmin=427248001.0 tmax=427507201.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 5.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446865/ft1_filtered_4FGL_J1216.2+0537_daily_bin725.fits" evtable="EVENTS" scfile=/scratch/kocevski/446865/ft2_4FGL_J1216.2+0537_daily_bin725.fits sctable="SC_DATA" outfile=/scratch/kocevski/446865/ltcube_427248001_427507201_4FGL_J1216.2+0537_daily_bin725.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/446865/ft2_4FGL_J1216.2+0537_daily_bin725.fits
.....................!
real 12.07
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446865/ft1_filtered_4FGL_J1216.2+0537_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/446865/ft2_4FGL_J1216.2+0537_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/446865/ltcube_427248001_427507201_4FGL_J1216.2+0537_daily_bin725.fits outfile=/scratch/kocevski/446865/expmap_427248001_427507201_4FGL_J1216.2+0537_daily_bin725.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/446865/ltcube_427248001_427507201_4FGL_J1216.2+0537_daily_bin725.fits
.....................!
real 190.83
user 185.95
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/446865/ft1_filtered_4FGL_J1216.2+0537_daily_bin725.fits scfile=/scratch/kocevski/446865/ft2_4FGL_J1216.2+0537_daily_bin725.fits outfile=/scratch/kocevski/446865/cmap_427248001_427507201_4FGL_J1216.2+0537_daily_bin725.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446865/ft1_filtered_4FGL_J1216.2+0537_daily_bin725.fits scfile=/scratch/kocevski/446865/ft2_4FGL_J1216.2+0537_daily_bin725.fits outfile=/scratch/kocevski/446865/cmap_HighResolution_427248001_427507201_4FGL_J1216.2+0537_daily_bin725.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7530       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.746       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.047       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8834       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.988       1.0000         .10000E-03   10000.    
    17 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .85765       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4355       1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.282       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.9707       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.9478       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.286       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4614       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .60752       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=   4865.132     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3909 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7527        3.9711        .89903E-07    .16637E-03
   2  Prefactor     .10000E-03    7.0907        .33605E-07** at limit **
   3  Prefactor     .10000E-03    39.226        .62802E-06** at limit **
   4  Prefactor     .10000E-03    5.4408        .63836E-07** at limit **
   5  Prefactor     .10000E-03    2.4527        .29391E-07** at limit **
   6  Prefactor     15.271        18.303        .21510E-06   -.96613E-05
   7  Prefactor     12.744        16.939        .74774E-06   -.72163E-04
   8  Prefactor     .10002E-03    34.668        .62097E-05** at limit **
   9  Prefactor     .10003E-03    44.955       -.70717E-05** at limit **
  10  Prefactor     .10000E-03    11.261       -.92379E-06** at limit **
  11  Prefactor     .10000E-03    2.8375        .18175E-07** at limit **
  12  Prefactor     .10000E-03    10.139        .32621E-06** at limit **
  13  Prefactor     .10000E-03    18.576       -.91077E-06** at limit **
  14  norm          10.047        4.1121       -.59662E-08    .51815E-04
  15  norm          2.8835        3.2879       -.97178E-08    .10363E-03
  16  Prefactor     27.979        42.487       -.12608E-05   -.82851E-04
  17  norm          .10001E-03    42.921       -.50043E-05** at limit **
  18  Prefactor     .10006E-03    71.650        .98826E-05** at limit **
  19  norm          .85763        .57392        .21329E-07    .19236E-03
  20  Prefactor     3.4407        26.494        .16880E-04   -.32410E-03
  21  Prefactor     56.278        51.592       -.67804E-05   -.15090E-03
  22  Prefactor     .10000E-03    13.055        .11533E-05** at limit **
  23  norm          2.9705        2.2234        .35439E-07   -.96476E-04
  24  Prefactor     .10000E-03    4.2790        .55821E-07** at limit **
  25  Prefactor     9.9547        39.427        .15409E-05    .26330E-04
  26  Prefactor     .10006E-03    188.15       -.10004E-04** at limit **
  27  norm          .10000E-03    11.783        .10256E-06** at limit **
  28  Prefactor     29.280        22.994        .19098E-06    .94247E-04
  29  Normalizat    1.4616        .23448       -.19106E-06    .13437E-05
  30  Prefactor     .60733        .18399       -.10689E-05    .18885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.75275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2705
  Prefactor  = 12.7445
  Prefactor  = 0.000100023
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0475
  norm       = 2.88348
  Prefactor  = 27.9793
  norm       = 0.000100014
  Prefactor  = 0.000100059
  norm       = 0.857627
  Prefactor  = 3.44067
  Prefactor  = 56.2778
  Prefactor  = 0.0001
  norm       = 2.97048
  Prefactor  = 0.0001
  Prefactor  = 9.95467
  Prefactor  = 0.000100059
  norm       = 0.0001
  Prefactor  = 29.2799
  Normalizat = 1.46164
  Prefactor  = 0.607328
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.132     FROM HESSE     STATUS=OK           580 CALLS     4489 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7527        3.9764        .96496E-04   -1.5151    
   2  Prefactor     .10000E-03    7.0934        .18141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4661        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4566        .10668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.271        18.339        .10249E-03   -1.4926    
   7  Prefactor     12.744        16.971        .56100E-03   -1.4994    
   8  Prefactor     .10002E-03    35.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    46.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8788        .11470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.047        4.0955        .86152E-04   -1.5074    
  15  norm          2.8835        3.2650        .12686E-03   -1.5368    
  16  Prefactor     27.979        42.572        .75728E-04   -1.4650    
  17  norm          .10001E-03    43.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10006E-03    75.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .85763        .55910        .40169E-04   -1.5523    
  20  Prefactor     3.4407        29.213        .10911E-02   -1.5337    
  21  Prefactor     56.278        52.255        .53471E-04   -1.4206    
  22  Prefactor     .10000E-03    13.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.9705        2.2162        .84201E-04   -1.5363    
  24  Prefactor     .10000E-03    4.2957        .14090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.9547        39.409        .12705E-03   -1.5077    
  26  Prefactor     .10006E-03    192.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    11.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     29.280        23.016        .74034E-04   -1.4625    
  29  Normalizat    1.4616        .27488        .25079E-03   -.78862    
  30  Prefactor     .60733        .21233        .29999E-03   -1.0728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76736e-09
Minuit parameter uncertainties:
  1  3.97657
  2  4.0264e-06
  3  0.00019277
  4  5.69867e-06
  5  3.01591e-06
  6  18.3462
  7  16.9772
  8  0.00181247
  9  0.00228677
  10  0.000149112
  11  2.36036e-06
  12  5.34672e-05
  13  0.000158517
  14  4.0956
  15  3.26525
  16  42.6181
  17  0.00158875
  18  0.00419998
  19  0.559106
  20  20.0641
  21  52.2976
  22  0.000161564
  23  2.21631
  24  2.21309e-06
  25  39.512
  26  0.0067756
  27  1.51647e-05
  28  23.023
  29  0.275157
  30  0.21261
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  5.347e-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.073e-01  2.126e-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.462e+00  2.752e-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: 5.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/446865/likelihoodResults_427248001_427507201_4FGL_J1216.2+0537_daily_bin725.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) = 4865.13208396
delta logL = -0.000462351262286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4865.13162157
delta logL = 3.65871528629e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9892       1.0000          .0000       10.000    
     3 'Normalizat'    1.4618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60722       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=   4865.132     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10227E-03    85.567        .18142E-02** at limit **
   2  Index         1.9188        8.5698        .50000        .19662E-04
   3  Normalizat    1.4616        .15971E-01    .25079E-03    .12965E-04
   4  Prefactor     .60733        .12941E-01    .29999E-03    .79963E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102275
  Index      = 1.91879
  Normalizat = 1.46164
  Prefactor  = 0.607327
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.132     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10227E-03    368.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9188        5.0258        .50000       -.66396    
   3  Normalizat    1.4616        .34269E-01    .10032E-04   -.78862    
   4  Prefactor     .60733        .27766E-01    .12000E-04   -1.0728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.39489e-08
Minuit parameter uncertainties:
  1  0.0583021
  2  544.372
  3  0.0342692
  4  0.0277666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446865': 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) = 4865.13162115
delta logL = 4.57829628431e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.023e-04  5.830e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.919e+00  5.444e+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:  6.073e-01  2.777e-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.462e+00  3.427e-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/446865/cmap_HighResolution_427248001_427507201_4FGL_J1216.2+0537_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-05 06:07:09.772517', job_id='446865', GAL2='0.61', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1630847229.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='4.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='725' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:07:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 446865: <4FGL_J1216.2+0537_daily_bin725> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin725 184.061 5.6248 427248001 427507201 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 :                                   765.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

