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


Performing analysis on: 4FGL_J1216.2+0537_daily_bin493
RA = 184.061, Dec = 5.6248
tmin = 367113601, tmax = 367372801
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='443849', job_status='RUN', time_executed='2021-09-05 05:44:57.895048', time_epoch_executed='1630845897.9' WHERE source_name='4FGL J1216.2+0537' and cadence='daily' and bin_id='493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443849

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443849/ft1_4FGL_J1216.2+0537_daily_bin493.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443849/ft2_4FGL_J1216.2+0537_daily_bin493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443849/ft1_4FGL_J1216.2+0537_daily_bin493.fits outfile=/scratch/kocevski/443849/ft1_filteredMKT_4FGL_J1216.2+0537_daily_bin493.fits ra=184.061 dec=5.6248 rad=12.0 tmin=367113601.0 tmax=367372801.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 4.12
user 3.91
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443849/ft1_filtered_4FGL_J1216.2+0537_daily_bin493.fits" evtable="EVENTS" scfile=/scratch/kocevski/443849/ft2_4FGL_J1216.2+0537_daily_bin493.fits sctable="SC_DATA" outfile=/scratch/kocevski/443849/ltcube_367113601_367372801_4FGL_J1216.2+0537_daily_bin493.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/443849/ft2_4FGL_J1216.2+0537_daily_bin493.fits
.....................!
real 9.15
user 8.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443849/ft1_filtered_4FGL_J1216.2+0537_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/443849/ft2_4FGL_J1216.2+0537_daily_bin493.fits sctable="SC_DATA" expcube=/scratch/kocevski/443849/ltcube_367113601_367372801_4FGL_J1216.2+0537_daily_bin493.fits outfile=/scratch/kocevski/443849/expmap_367113601_367372801_4FGL_J1216.2+0537_daily_bin493.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/443849/ltcube_367113601_367372801_4FGL_J1216.2+0537_daily_bin493.fits
.....................!
real 148.52
user 144.22
sys 4.04

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/443849/ft1_filtered_4FGL_J1216.2+0537_daily_bin493.fits scfile=/scratch/kocevski/443849/ft2_4FGL_J1216.2+0537_daily_bin493.fits outfile=/scratch/kocevski/443849/cmap_367113601_367372801_4FGL_J1216.2+0537_daily_bin493.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.46
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443849/ft1_filtered_4FGL_J1216.2+0537_daily_bin493.fits scfile=/scratch/kocevski/443849/ft2_4FGL_J1216.2+0537_daily_bin493.fits outfile=/scratch/kocevski/443849/cmap_HighResolution_367113601_367372801_4FGL_J1216.2+0537_daily_bin493.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1268       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10462E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.717       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11677E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6472       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    26.419       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .47404E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11464E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .14550       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1837       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11976E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .50791E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    4.3117       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9081       1.0000         .10000E-03   10000.    
    27 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.0995       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80694       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=   6911.102     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3966 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1279        3.1449        .42669E-07   -.11469E-04
   2  Prefactor     .10000E-03    10.049        .37964E-06** at limit **
   3  Prefactor     .10015E-03    579.32        .32116E-04** at limit **
   4  Prefactor     3.7508        10.213        .22992E-05    .32937E-03
   5  Prefactor     5.6757        8.6275        .12715E-05    .37769E-03
   6  Prefactor     .10000E-03    6.9580        .55910E-07** at limit **
   7  Prefactor     37.720        18.357        .20893E-06   -.20393E-04
   8  Prefactor     .10000E-03    30.294       -.13915E-05** at limit **
   9  Prefactor     .10000E-03    21.145        .42940E-06** at limit **
  10  Prefactor     .10000E-03    9.2998       -.18008E-06** at limit **
  11  Prefactor     4.6458        3.6143        .81046E-07    .19825E-04
  12  Prefactor     .10000E-03    15.297       -.11022E-06** at limit **
  13  Prefactor     .10000E-03    13.652       -.19922E-06** at limit **
  14  norm          .10000E-03    1.3754       -.75609E-07** at limit **
  15  norm          26.410        5.4346        .15071E-06    .46417E-03
  16  Prefactor     .10000E-03    7.8396       -.48204E-06** at limit **
  17  norm          .10003E-03    373.41       -.10812E-04** at limit **
  18  Prefactor     .10000E-03    33.415        .12795E-05** at limit **
  19  norm          .14443        .39820        .28431E-06   -.48099E-03
  20  Prefactor     4.1792        9.6550        .24297E-06    .14546E-04
  21  Prefactor     .10000E-03    63.191       -.41026E-07** at limit **
  22  Prefactor     .22113E-01    8.4788        .29042E-05   -.10091E-02
  23  norm          4.3100        1.8986        .51211E-07   -.65805E-04
  24  Prefactor     .10000E-03    1.8085       -.25704E-07** at limit **
  25  Prefactor     .10000E-03    7.9999        .53645E-06** at limit **
  26  Prefactor     3.8649        175.08        .46889E-05    .15495E-04
  27  norm          .10000E-03    9.4942       -.24924E-06** at limit **
  28  Prefactor     9.1076        17.178       -.31331E-06   -.36776E-04
  29  Normalizat    1.2677        .20615       -.17188E-05   -.23854E-03
  30  Prefactor     .80690        .15703        .74300E-06   -.22562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.12786
  Prefactor  = 0.0001
  Prefactor  = 0.000100152
  Prefactor  = 3.75083
  Prefactor  = 5.67572
  Prefactor  = 0.0001
  Prefactor  = 37.7201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.64579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.4105
  Prefactor  = 0.0001
  norm       = 0.000100027
  Prefactor  = 0.0001
  norm       = 0.144431
  Prefactor  = 4.1792
  Prefactor  = 0.0001
  Prefactor  = 0.0221135
  norm       = 4.31002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.86485
  norm       = 0.0001
  Prefactor  = 9.10757
  Normalizat = 1.26769
  Prefactor  = 0.806904
 **********
 **   18 **HESSE 
 **********

 FCN=   6911.102     FROM HESSE     STATUS=OK           592 CALLS     4558 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1279        3.1449        .11179E-03   -1.5255    
   2  Prefactor     .10000E-03    10.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10015E-03    581.86        .18151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7508        10.257        .10437E-02   -1.5321    
   5  Prefactor     5.6757        8.6421        .84302E-03   -1.5231    
   6  Prefactor     .10000E-03    6.9675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.720        18.410        .65261E-04   -1.4479    
   8  Prefactor     .10000E-03    30.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6458        3.6138        .13448E-03   -1.5277    
  12  Prefactor     .10000E-03    15.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4241        .19020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          26.410        5.3523        .77744E-04   -1.4680    
  16  Prefactor     .10000E-03    7.8426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10003E-03    386.58        .38550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .14443        .47437        .72526E-03   -1.5632    
  20  Prefactor     4.1792        9.6183        .19704E-03   -1.5299    
  21  Prefactor     .10000E-03    64.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .22113E-01    8.0500        .57640E-01   -1.5678    
  23  norm          4.3100        1.8872        .71303E-04   -1.5293    
  24  Prefactor     .10000E-03    1.8117        .10918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.0022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.8649        169.86        .20409E-03   -1.5315    
  27  norm          .10000E-03    9.5085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.1076        16.906        .13286E-03   -1.5104    
  29  Normalizat    1.2677        .23609        .26811E-03   -.84536    
  30  Prefactor     .80690        .18151        .26870E-03   -.99474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61337e-08
Minuit parameter uncertainties:
  1  3.14505
  2  2.94528e-05
  3  0.0189982
  4  10.2619
  5  8.64404
  6  4.30622e-06
  7  18.4124
  8  0.000204631
  9  4.1289e-05
  10  1.81632e-05
  11  3.614
  12  1.85839e-05
  13  5.81306e-05
  14  6.11325e-06
  15  5.35241
  16  3.67966e-05
  17  0.00652458
  18  0.000196106
  19  0.474381
  20  9.62181
  21  2.83085e-05
  22  0.842035
  23  1.88726
  24  2.65388e-06
  25  3.78943e-05
  26  51.3991
  27  2.22425e-05
  28  16.9151
  29  0.236288
  30  0.181646
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.858e-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:  8.069e-01  1.816e-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.268e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 6.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443849/likelihoodResults_367113601_367372801_4FGL_J1216.2+0537_daily_bin493.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) = 6911.10223465
delta logL = -0.000310711337079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6911.10192417
delta logL = -2.33919308812e-07

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     '    2.1213       1.0000          .0000       10.000    
     3 'Normalizat'    1.2677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80691       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=   6911.102     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    145.01        .90712E-02** at limit **
   2  Index         2.1041        7.9828        .50000        .96628E-05
   3  Normalizat    1.2677        .15730E-01    .60620E-01    .14091E-04
   4  Prefactor     .80690        .12956E-01    .43807E-01    .32061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10413
  Normalizat = 1.26769
  Prefactor  = 0.806904
 **********
 **   18 **HESSE 
 **********

 FCN=   6911.102     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 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     .10000E-03    973.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1041        5.3722        .50000       -.61772    
   3  Normalizat    1.2677        .44456E-01    .26811E-03   -.84536    
   4  Prefactor     .80690        .36628E-01    .26870E-03   -.99474    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.9415e-09
Minuit parameter uncertainties:
  1  0.000398832
  2  34.0846
  3  0.0444576
  4  0.0366288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443849': 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) = 6911.10192413
delta logL = -1.90883838513e-07

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.988e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.104e+00  3.408e+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:  8.069e-01  3.663e-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.268e+00  4.446e-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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/443849/cmap_HighResolution_367113601_367372801_4FGL_J1216.2+0537_daily_bin493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2021-09-05 05:57:29.199708', job_id='443849', GAL2='0.81', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630846649.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-1.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='493' AND source_name='4FGL J1216.2+0537' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:57:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 443849: <4FGL_J1216.2+0537_daily_bin493> in cluster <slac> Done

Job <4FGL_J1216.2+0537_daily_bin493> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 05:41:01 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:41:02 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:41:02 2021
Terminated at Sun Sep  5 05:57:30 2021
Results reported at Sun Sep  5 05:57:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1216.2+0537_daily_bin493 184.061 5.6248 367113601 367372801 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 :                                   747.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

