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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin862
RA = 221.591, Dec = 31.1955
tmin = 462758401, tmax = 463017601
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='773583', job_status='RUN', time_executed='2021-09-10 09:01:43.421815', time_epoch_executed='1631289703.42' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='862'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773583/ft1_4FGL_J1446.3+3111_daily_bin862.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773583/ft1_4FGL_J1446.3+3111_daily_bin862.fits outfile=/scratch/kocevski/773583/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin862.fits ra=221.591 dec=31.1955 rad=12.0 tmin=462758401.0 tmax=463017601.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.59
user 4.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.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/773583/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin862.fits evtable="EVENTS" outfile="/scratch/kocevski/773583/ft1_filtered_4FGL_J1446.3+3111_daily_bin862.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/773583/ft1_filtered_4FGL_J1446.3+3111_daily_bin862.fits" evtable="EVENTS" scfile=/scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits sctable="SC_DATA" outfile=/scratch/kocevski/773583/ltcube_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.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/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits
.....................!
real 11.98
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773583/ft1_filtered_4FGL_J1446.3+3111_daily_bin862.fits evtable="EVENTS" scfile=/scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits sctable="SC_DATA" expcube=/scratch/kocevski/773583/ltcube_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.fits outfile=/scratch/kocevski/773583/expmap_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.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/773583/ltcube_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.fits
.....................!
real 191.25
user 186.12
sys 4.69

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J1446.3+3111 @ 221.591 31.1955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/773583/ft1_filtered_4FGL_J1446.3+3111_daily_bin862.fits scfile=/scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits outfile=/scratch/kocevski/773583/cmap_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.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=221.591 yref=31.1955 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773583/ft1_filtered_4FGL_J1446.3+3111_daily_bin862.fits scfile=/scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits outfile=/scratch/kocevski/773583/cmap_HighResolution_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.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=221.591 yref=31.1955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/773583/ft1_filtered_4FGL_J1446.3+3111_daily_bin862.fits evtable="EVENTS" scfile=/scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/773583/Model_4FGL_J1446.3+3111_daily_bin862.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/773583/ft1_filtered_4FGL_J1446.3+3111_daily_bin862.fits.....................!
real 50.08
user 48.72
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/773583/ft1_filtered_4FGL_J1446.3+3111_daily_bin862.fits', '/scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits', expMap='/scratch/kocevski/773583/expmap_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.fits', expCube='/scratch/kocevski/773583/ltcube_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/773583/Model_4FGL_J1446.3+3111_daily_bin862.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1446.3+3111'

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.552e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/773583/ft1_filtered_4FGL_J1446.3+3111_daily_bin862.fits
Spacecraft file(s): /scratch/kocevski/773583/ft2_4FGL_J1446.3+3111_daily_bin862.fits
Exposure map: /scratch/kocevski/773583/expmap_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.fits
Exposure cube: /scratch/kocevski/773583/ltcube_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/773583/Model_4FGL_J1446.3+3111_daily_bin862.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) = 6445.98521383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4871       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1465       1.0000         .10000E-03   10000.    
     7 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.058       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.766       1.0000         .10000E-03   10000.    
    13 'norm      '    17.417       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0819       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12397E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.073       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0109       1.0000         .10000E-03   10000.    
    20 'Prefactor '    90.775       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5508       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4149       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .60781E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0040       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0119       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6445.983     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3331 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4185        .96905E-07** at limit **
   2  Prefactor     .10000E-03    6.0485        .14482E-06** at limit **
   3  norm          3.4874        3.4926        .77663E-07   -.79828E-04
   4  Prefactor     .10000E-03    26.159        .19376E-05** at limit **
   5  Prefactor     .10000E-03    24.400        .15564E-05** at limit **
   6  Prefactor     9.1486        4.8515        .71885E-07    .21800E-05
   7  norm          .10000E-03    15.629        .76659E-06** at limit **
   8  norm          17.059        4.4578        .48144E-07   -.23077E-03
   9  Prefactor     .10000E-03    17.252        .65516E-06** at limit **
  10  norm          .10000E-03    1.8143        .81943E-06** at limit **
  11  norm          .10000E-03    10.515        .12312E-05** at limit **
  12  Prefactor     41.774        39.578       -.22373E-06    .12803E-04
  13  norm          17.419        7.1299        .98388E-07   -.10035E-03
  14  Prefactor     .10000E-03    17.561        .47208E-06** at limit **
  15  norm          6.0760        9.6720        .35863E-05   -.74554E-04
  16  Prefactor     .10000E-03    44.239        .21077E-05** at limit **
  17  Prefactor     .10000E-03    2.9887        .68674E-07** at limit **
  18  Prefactor     13.076        9.5589        .63227E-07   -.49415E-04
  19  norm          5.0113        2.4385        .22397E-06    .11481E-03
  20  Prefactor     90.413        127.68       -.58243E-05   -.15755E-03
  21  Prefactor     3.5527        6.9660        .84097E-05   -.83057E-04
  22  norm          3.4154        1.4893       -.49844E-07    .67682E-04
  23  Prefactor     .10000E-03    9.5499        .17255E-06** at limit **
  24  Prefactor     .10000E-03    21.949        .18192E-06** at limit **
  25  Prefactor     .10000E-03    198.12       -.39243E-04** at limit **
  26  Normalizat    1.0035        .20105        .14994E-05   -.15832E-03
  27  Prefactor     1.0120        .18051       -.36218E-05    .54396E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.4874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.14862
  norm       = 0.0001
  norm       = 17.0591
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 41.7742
  norm       = 17.4194
  Prefactor  = 0.0001
  norm       = 6.07595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0755
  norm       = 5.01126
  Prefactor  = 90.4126
  Prefactor  = 3.55266
  norm       = 3.41536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.00355
  Prefactor  = 1.01199
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.983     FROM HESSE     STATUS=OK           486 CALLS     3817 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4193        .93384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4874        3.4861        .14474E-03   -1.5334    
   4  Prefactor     .10000E-03    26.994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1486        4.8630        .12186E-03   -1.5103    
   7  norm          .10000E-03    15.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.059        4.4581        .83380E-04   -1.4882    
   9  Prefactor     .10000E-03    17.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2578        .20934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.774        39.592        .31014E-03   -1.4414    
  13  norm          17.419        7.1315        .95970E-04   -1.4873    
  14  Prefactor     .10000E-03    17.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0760        9.6555        .81401E-03   -1.5215    
  16  Prefactor     .10000E-03    46.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9924        .13550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.076        9.5628        .11078E-03   -1.4985    
  19  norm          5.0113        2.4445        .77724E-04   -1.5260    
  20  Prefactor     90.413        128.47        .21088E-03   -1.3803    
  21  Prefactor     3.5527        7.0184        .10725E-02   -1.5331    
  22  norm          3.4154        1.4856        .61409E-04   -1.5338    
  23  Prefactor     .10000E-03    9.7229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    199.37        .42114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0035        .22995        .28085E-03   -.92912    
  27  Prefactor     1.0120        .20517        .25456E-03   -.92331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39558e-10
Minuit parameter uncertainties:
  1  3.79821e-07
  2  7.65327e-07
  3  3.48633
  4  5.0203e-05
  5  6.40753e-05
  6  4.86323
  7  2.56641e-05
  8  4.45816
  9  2.12175e-05
  10  5.71782e-05
  11  8.16662e-05
  12  39.6165
  13  7.13186
  14  9.70864e-06
  15  9.65799
  16  0.000115275
  17  1.36994e-06
  18  9.56393
  19  2.4445
  20  128.868
  21  7.02002
  22  1.48562
  23  4.14891e-05
  24  2.8319e-05
  25  0.00177634
  26  0.230176
  27  0.205332
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  9.709e-06  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.012e+00  2.053e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.004e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/773583/likelihoodResults_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.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) = 6445.98296683
delta logL = -0.000270946570708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6445.98269586
delta logL = 2.43098838837e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2615       1.0000          .0000       10.000    
     3 'Normalizat'    1.0035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0120       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6445.983     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      227 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.901        .90712E-02** at limit **
   2  Index         3.2549        6.3985        .50000        .35438E-05
   3  Normalizat    1.0036        .55699E-02    .46211E-01    .25093E-04
   4  Prefactor     1.0120        .50928E-02    .43051E-01    .14674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.25494
  Normalizat = 1.00355
  Prefactor  = 1.01198
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.983     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    155.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2549        6.0140        .50000       -.35652    
   3  Normalizat    1.0036        .14270E-01    .28084E-03   -.92912    
   4  Prefactor     1.0120        .13050E-01    .25456E-03   -.92331    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22756e-07
Minuit parameter uncertainties:
  1  0.000158856
  2  469.111
  3  0.0142698
  4  0.01305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773583': 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) = 6445.98269584
delta logL = 5.05078787683e-08

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.589e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.255e+00  4.691e+02  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.012e+00  1.305e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.004e+00  1.427e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 221.591 31.195

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/773583/cmap_HighResolution_462758401_463017601_4FGL_J1446.3+3111_daily_bin862.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-09-10 09:13:50.830536', job_id='773583', GAL2='1.01', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631290430.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='862' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:13:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 773583: <4FGL_J1446.3+3111_daily_bin862> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin862> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 09:01:24 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:01:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 09:01:26 2021
Terminated at Fri Sep 10 09:13:51 2021
Results reported at Fri Sep 10 09:13:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin862 221.591 31.1955 462758401 463017601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1446.3+3111 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   726.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

