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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin906
RA = 184.061, Dec = 5.6248
tmin = 474163201, tmax = 474422401
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='447200', job_status='RUN', time_executed='2021-09-05 05:54:11.013005', time_epoch_executed='1630846451.01' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447200

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447200/ft1_4FGL_J1216.2+0537_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447200/ft2_4FGL_J1216.2+0537_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447200/ft1_4FGL_J1216.2+0537_daily_bin906.fits outfile=/scratch/kocevski/447200/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin906.fits ra=184.061 dec=5.6248 rad=12.0 tmin=474163201.0 tmax=474422401.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.70
user 5.24
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447200/ft1_filtered_4FGL_J1216.2+0537_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/447200/ft2_4FGL_J1216.2+0537_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/447200/ltcube_474163201_474422401_4FGL_J1216.2+0537_daily_bin906.fits outfile=/scratch/kocevski/447200/expmap_474163201_474422401_4FGL_J1216.2+0537_daily_bin906.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/447200/ltcube_474163201_474422401_4FGL_J1216.2+0537_daily_bin906.fits
.....................!
real 192.86
user 185.74
sys 4.29

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/447200/ft1_filtered_4FGL_J1216.2+0537_daily_bin906.fits scfile=/scratch/kocevski/447200/ft2_4FGL_J1216.2+0537_daily_bin906.fits outfile=/scratch/kocevski/447200/cmap_474163201_474422401_4FGL_J1216.2+0537_daily_bin906.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447200/ft1_filtered_4FGL_J1216.2+0537_daily_bin906.fits scfile=/scratch/kocevski/447200/ft2_4FGL_J1216.2+0537_daily_bin906.fits outfile=/scratch/kocevski/447200/cmap_HighResolution_474163201_474422401_4FGL_J1216.2+0537_daily_bin906.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.105       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .94784E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4601       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38232E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5200       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6071       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.422       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.871       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.409       1.0000         .10000E-03   10000.    
    17 'norm      '    39.600       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.158       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9731       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.703       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2560       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.310       1.0000         .10000E-03   10000.    
    25 'Prefactor '    42.186       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.744       1.0000         .10000E-03   10000.    
    27 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.884       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .52039       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4922       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=   2582.040     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     4580 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.109        10.835        .14992E-06    .30111E-05
   2  Prefactor     .10000E-03    18.926       -.18458E-06** at limit **
   3  Prefactor     .10000E-03    997.13       -.20794E-05** at limit **
   4  Prefactor     .10000E-03    80.713        .10342E-05** at limit **
   5  Prefactor     4.4649        19.023        .96431E-05   -.41411E-05
   6  Prefactor     .10000E-03    12.646        .12781E-06** at limit **
   7  Prefactor     37.918        41.672        .37110E-06   -.21205E-04
   8  Prefactor     .10000E-03    121.90        .39463E-06** at limit **
   9  Prefactor     .10000E-03    29.891       -.17407E-06** at limit **
  10  Prefactor     9.5434        52.942       -.17580E-05   -.13868E-04
  11  Prefactor     5.6085        5.3146        .23242E-06    .56188E-05
  12  Prefactor     6.3344        77.515        .13949E-06    .27284E-05
  13  Prefactor     23.422        25.370        .12453E-06    .16494E-04
  14  norm          .10000E-03    3.7807       -.34496E-06** at limit **
  15  norm          10.878        8.3759        .28429E-06    .15562E-04
  16  Prefactor     21.452        34.854       -.25076E-06   -.73260E-04
  17  norm          39.451        91.845       -.18228E-05   -.23852E-04
  18  Prefactor     19.216        391.59        .28415E-05    .42570E-05
  19  norm          4.9741        1.5222        .66636E-07    .65755E-04
  20  Prefactor     .10000E-03    5.5937        .65826E-07** at limit **
  21  Prefactor     .10000E-03    40.592        .61045E-06** at limit **
  22  Prefactor     30.702        27.149        .20211E-06    .36088E-04
  23  norm          1.2565        2.6541        .34361E-06    .99481E-04
  24  Prefactor     15.323        19.359        .27333E-06    .15872E-04
  25  Prefactor     42.088        79.698        .10637E-05   -.99643E-05
  26  Prefactor     14.837        117.96        .18237E-05    .14762E-04
  27  norm          .10000E-03    26.647       -.43963E-07** at limit **
  28  Prefactor     16.899        21.129        .43100E-06    .96247E-05
  29  Normalizat    .51984        .39254       -.92215E-05   -.96427E-05
  30  Prefactor     1.4923        .33518        .20027E-05   -.59035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1087
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 4.46494
  Prefactor  = 0.0001
  Prefactor  = 37.9184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.54345
  Prefactor  = 5.60853
  Prefactor  = 6.33445
  Prefactor  = 23.4216
  norm       = 0.0001
  norm       = 10.8781
  Prefactor  = 21.4523
  norm       = 39.4512
  Prefactor  = 19.2158
  norm       = 4.97413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7023
  norm       = 1.2565
  Prefactor  = 15.3228
  Prefactor  = 42.0881
  Prefactor  = 14.8365
  norm       = 0.0001
  Prefactor  = 16.8994
  Normalizat = 0.519841
  Prefactor  = 1.49231
 **********
 **   18 **HESSE 
 **********

 FCN=   2582.040     FROM HESSE     STATUS=OK           590 CALLS     5170 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.109        10.826        .11065E-03   -1.4984    
   2  Prefactor     .10000E-03    18.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1004.3        .18173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    83.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4649        19.137        .95332E-03   -1.5285    
   6  Prefactor     .10000E-03    12.655        .17652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.918        41.646        .65103E-04   -1.4476    
   8  Prefactor     .10000E-03    122.02        .21284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5434        52.755        .12988E-03   -1.5090    
  11  Prefactor     5.6085        5.3098        .10977E-03   -1.5234    
  12  Prefactor     6.3344        77.654        .15945E-03   -1.5205    
  13  Prefactor     23.422        25.227        .82767E-04   -1.4740    
  14  norm          .10000E-03    3.7948        .95991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.878        8.3931        .10480E-03   -1.5048    
  16  Prefactor     21.452        34.922        .86566E-04   -1.4781    
  17  norm          39.451        92.377        .63696E-04   -1.4451    
  18  Prefactor     19.216        390.39        .91506E-04   -1.4831    
  19  norm          4.9741        1.5239        .31013E-04   -1.5262    
  20  Prefactor     .10000E-03    5.5958        .11739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.702        27.196        .72309E-04   -1.4599    
  23  norm          1.2565        2.6159        .11330E-03   -1.5484    
  24  Prefactor     15.323        19.343        .10236E-03   -1.4925    
  25  Prefactor     42.088        79.546        .61720E-04   -1.4410    
  26  Prefactor     14.837        117.37        .10431E-03   -1.4937    
  27  norm          .10000E-03    26.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     16.899        21.084        .97473E-04   -1.4886    
  29  Normalizat    .51984        .42139        .43675E-03   -1.1150    
  30  Prefactor     1.4923        .37353        .24202E-03   -.77755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12498e-10
Minuit parameter uncertainties:
  1  10.8279
  2  1.45921e-05
  3  0.00426345
  4  0.000247839
  5  18.4972
  6  1.49203e-05
  7  41.6783
  8  0.00020891
  9  6.33213e-05
  10  44.9368
  11  5.31028
  12  44.4288
  13  25.2389
  14  2.91536e-06
  15  8.39404
  16  34.955
  17  92.7143
  18  174.545
  19  1.52389
  20  4.93177e-06
  21  0.000131315
  22  27.2067
  23  2.61617
  24  19.3505
  25  79.7473
  26  83.6874
  27  1.68016e-05
  28  21.0928
  29  0.424015
  30  0.374215
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  6.334e+00  4.443e+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.492e+00  3.742e-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:  5.198e-01  4.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/447200/likelihoodResults_474163201_474422401_4FGL_J1216.2+0537_daily_bin906.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) = 2582.039446
delta logL = 9.81335269898e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2582.03942228
delta logL = 0.000121856508486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6637       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9903       1.0000          .0000       10.000    
     3 'Normalizat'    .51990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4924       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=   2582.039     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      259 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6767        106.12        .15545E-03   -.54778E-04
   2  Index         1.9907        1.8960        .10106E-01   -.47795E-04
   3  Normalizat    .51999        .40138        .43669E-03    .26421E-03
   4  Prefactor     1.4922        .36467        .24203E-03    .64327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.67672
  Index      = 1.99067
  Normalizat = 0.519991
  Prefactor  = 1.49221
 **********
 **   18 **HESSE 
 **********

 FCN=   2582.039     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6767        92.950        .62179E-05   -1.5191    
   2  Index         1.9907        1.7852        .40424E-03   -.64583    
   3  Normalizat    .51999        .40144        .17468E-04   -1.1150    
   4  Prefactor     1.4922        .36469        .48406E-04   -.77758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66462e-09
Minuit parameter uncertainties:
  1  49.9178
  2  1.85081
  3  0.403709
  4  0.365325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447200': 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): 0
logL (Free Index) = 2582.03942182
delta logL = 0.000122314653709

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  6.677e+00  4.992e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.991e+00  1.851e+00  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.492e+00  3.653e-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:  5.200e-01  4.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/447200/cmap_HighResolution_474163201_474422401_4FGL_J1216.2+0537_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-05 06:05:39.295359', job_id='447200', GAL2='1.49', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1630847139.3', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='1.22e-04', ts2='0.02', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='906' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:05:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 447200: <4FGL_J1216.2+0537_daily_bin906> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin906 184.061 5.6248 474163201 474422401 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 :                                   593.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            862 sec.

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

