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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin328
RA = 184.061, Dec = 5.6248
tmin = 324345601, tmax = 324604801
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='443645', job_status='RUN', time_executed='2021-09-05 05:42:57.651710', time_epoch_executed='1630845777.65' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443645/ft1_4FGL_J1216.2+0537_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443645/ft2_4FGL_J1216.2+0537_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443645/ft1_4FGL_J1216.2+0537_daily_bin328.fits outfile=/scratch/kocevski/443645/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin328.fits ra=184.061 dec=5.6248 rad=12.0 tmin=324345601.0 tmax=324604801.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 14.04
user 13.56
sys 0.45

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443645/ft1_filtered_4FGL_J1216.2+0537_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/443645/ft2_4FGL_J1216.2+0537_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/443645/ltcube_324345601_324604801_4FGL_J1216.2+0537_daily_bin328.fits outfile=/scratch/kocevski/443645/expmap_324345601_324604801_4FGL_J1216.2+0537_daily_bin328.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/443645/ltcube_324345601_324604801_4FGL_J1216.2+0537_daily_bin328.fits
.....................!
real 191.16
user 186.25
sys 4.48

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/443645/ft1_filtered_4FGL_J1216.2+0537_daily_bin328.fits scfile=/scratch/kocevski/443645/ft2_4FGL_J1216.2+0537_daily_bin328.fits outfile=/scratch/kocevski/443645/cmap_324345601_324604801_4FGL_J1216.2+0537_daily_bin328.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443645/ft1_filtered_4FGL_J1216.2+0537_daily_bin328.fits scfile=/scratch/kocevski/443645/ft2_4FGL_J1216.2+0537_daily_bin328.fits outfile=/scratch/kocevski/443645/cmap_HighResolution_324345601_324604801_4FGL_J1216.2+0537_daily_bin328.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.381       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.652       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6554       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    106.61       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.428       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0413       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4470       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    399.09       1.0000         .10000E-03   10000.    
    19 'norm      '    5.7420       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30859E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.516       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4998       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    183.14       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .30682       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.6338       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=   2058.027     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     3952 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1953        .31167E-07** at limit **
   2  Prefactor     37.392        43.490        .12921E-04   -.41190E-04
   3  Prefactor     13.641        364.72       -.45412E-04   -.19286E-04
   4  Prefactor     .10000E-03    19.722        .67277E-06** at limit **
   5  Prefactor     13.655        14.106       -.33768E-06   -.59254E-04
   6  Prefactor     8.6639        29.581       -.34886E-04   -.12510E-03
   7  Prefactor     .10000E-03    396.92        .13021E-05** at limit **
   8  Prefactor     106.63        144.93        .20453E-04   -.37271E-04
   9  Prefactor     .10000E-03    58.513       -.62495E-05** at limit **
  10  Prefactor     .10000E-03    37.260        .80881E-05** at limit **
  11  Prefactor     .10000E-03    4.3972        .15081E-06** at limit **
  12  Prefactor     11.353        124.44        .83104E-04   -.23314E-04
  13  Prefactor     .10000E-03    19.986       -.29387E-06** at limit **
  14  norm          3.0426        5.5516        .69124E-07   -.23140E-03
  15  norm          5.4478        10.581       -.26280E-04   -.68673E-03
  16  Prefactor     .10001E-03    32.771       -.27594E-05** at limit **
  17  norm          .10000E-03    37.748       -.67433E-05** at limit **
  18  Prefactor     400.05        456.00        .46469E-03   -.75506E-05
  19  norm          5.7422        2.3398       -.11489E-06   -.85186E-03
  20  Prefactor     .25506        21.938        .33916E-06   -.17190E-03
  21  Prefactor     .10000E-03    50.775       -.12460E-04** at limit **
  22  Prefactor     19.532        36.546        .25715E-04   -.45915E-04
  23  norm          2.4986        4.4671       -.40827E-05   -.76044E-03
  24  Prefactor     .10000E-03    12.996       -.12128E-06** at limit **
  25  Prefactor     .10000E-03    54.580        .20315E-04** at limit **
  26  Prefactor     183.10        127.19       -.24556E-04   -.44789E-04
  27  norm          .10000E-03    52.139       -.18286E-05** at limit **
  28  Prefactor     .10000E-03    15.243        .24031E-06** at limit **
  29  Normalizat    .30699        .43522        .35773E-04   -.47555E-04
  30  Prefactor     1.6331        .38312       -.23086E-04    .21043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 37.3922
  Prefactor  = 13.6409
  Prefactor  = 0.0001
  Prefactor  = 13.6548
  Prefactor  = 8.66391
  Prefactor  = 0.0001
  Prefactor  = 106.629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3533
  Prefactor  = 0.0001
  norm       = 3.04263
  norm       = 5.44783
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 400.052
  norm       = 5.74225
  Prefactor  = 0.255055
  Prefactor  = 0.0001
  Prefactor  = 19.5322
  norm       = 2.49861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 183.101
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.306995
  Prefactor  = 1.6331
 **********
 **   18 **HESSE 
 **********

 FCN=   2058.027     FROM HESSE     STATUS=OK           576 CALLS     4528 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2574        .90727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.392        43.486        .65552E-04   -1.4484    
   3  Prefactor     13.641        363.90        .10795E-03   -1.4969    
   4  Prefactor     .10000E-03    19.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.655        14.099        .10841E-03   -1.4969    
   6  Prefactor     8.6639        29.378        .13625E-03   -1.5119    
   7  Prefactor     .10000E-03    400.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     106.63        144.55        .38948E-04   -1.3639    
   9  Prefactor     .10000E-03    58.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4553        .92775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.353        122.84        .11850E-03   -1.5034    
  13  Prefactor     .10000E-03    19.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0426        5.5380        .13972E-03   -1.5359    
  15  norm          5.4478        10.492        .16739E-03   -1.5241    
  16  Prefactor     .10001E-03    32.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    37.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     400.05        455.38        .10217E-03   -1.1681    
  19  norm          5.7422        2.3342        .38599E-04   -1.5229    
  20  Prefactor     .25506        335.18        .40181E-02   -1.5607    
  21  Prefactor     .10000E-03    50.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.532        36.555        .90663E-04   -1.4824    
  23  norm          2.4986        4.4265        .11940E-03   -1.5392    
  24  Prefactor     .10000E-03    12.997        .15976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    54.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     183.10        127.09        .14916E-03   -1.2993    
  27  norm          .10000E-03    52.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.253        .17301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .30699        .41050        .52421E-03   -1.2242    
  30  Prefactor     1.6331        .38376        .22140E-03   -.73877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00764e-09
Minuit parameter uncertainties:
  1  4.9228e-06
  2  43.5227
  3  141.879
  4  0.000151048
  5  14.1028
  6  29.4269
  7  0.000392275
  8  145.027
  9  2.73265e-05
  10  3.56239e-05
  11  3.02963e-05
  12  74.8861
  13  2.91732e-05
  14  5.53893
  15  10.4956
  16  0.00102413
  17  0.000210246
  18  459.576
  19  2.33424
  20  18.5937
  21  0.0001191
  22  36.5973
  23  4.42713
  24  4.65031e-05
  25  2.4543e-05
  26  127.277
  27  1.89062e-05
  28  9.28783e-05
  29  0.414614
  30  0.384455
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.135e+01  7.489e+01  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.633e+00  3.845e-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:  3.070e-01  4.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/443645/likelihoodResults_324345601_324604801_4FGL_J1216.2+0537_daily_bin328.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) = 2057.95323808
delta logL = 0.0742403476688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2057.92959743
delta logL = 0.0978809961111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2873       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1294       1.0000          .0000       10.000    
     3 'Normalizat'    .26442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6508       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=   2057.930     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      257 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1458        296.35        .55829E-02    .23004E-03
   2  Index         3.1453        6.5661        .93267E-01    .64563E-04
   3  Normalizat    .26444        .10145        .12699        .24211E-04
   4  Prefactor     1.6506        .87204E-01    .49789E-01   -.31637E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14581
  Index      = 3.14531
  Normalizat = 0.264445
  Prefactor  = 1.65064
 **********
 **   18 **HESSE 
 **********

 FCN=   2057.930     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1458        653.20        .16478E-03   -1.5353    
   2  Index         3.1453        5.0920        .53132E-02   -.38002    
   3  Normalizat    .26444        .38515        .56167E-03   -1.2502    
   4  Prefactor     1.6506        .33125        .22006E-03   -.73404    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.63054e-10
Minuit parameter uncertainties:
  1  91.6918
  2  10.8727
  3  0.389107
  4  0.331687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443645': 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) = 2057.92958849
delta logL = 0.0978899394677

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  3.146e+00  9.169e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  3.145e+00  1.087e+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.651e+00  3.317e-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:  2.644e-01  3.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/443645/cmap_HighResolution_324345601_324604801_4FGL_J1216.2+0537_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', job_status='DONE', photon_flux_upper_limit='2.12e-07', time_completed='2021-09-05 05:52:10.353522', job_id='443645', GAL2='1.65', fit_tolerance='1e-08', EG2='0.26', EG='0.31', time_epoch_completed='1630846330.35', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.63', dlogl='9.79e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='328' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 443645: <4FGL_J1216.2+0537_daily_bin328> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin328> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 05:40:45 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:40:46 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:40:46 2021
Terminated at Sun Sep  5 05:52:11 2021
Results reported at Sun Sep  5 05:52:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin328 184.061 5.6248 324345601 324604801 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 :                                   545.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            686 sec.

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

