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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1190
RA = 221.591, Dec = 31.1955
tmin = 547776001, tmax = 548035201
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='775130', job_status='RUN', time_executed='2021-09-10 09:08:46.695656', time_epoch_executed='1631290126.7' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775130/ft1_4FGL_J1446.3+3111_daily_bin1190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775130/ft2_4FGL_J1446.3+3111_daily_bin1190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775130/ft1_4FGL_J1446.3+3111_daily_bin1190.fits outfile=/scratch/kocevski/775130/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1190.fits ra=221.591 dec=31.1955 rad=12.0 tmin=547776001.0 tmax=548035201.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 3.61
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775130/ft2_4FGL_J1446.3+3111_daily_bin1190.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/775130/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1190.fits evtable="EVENTS" outfile="/scratch/kocevski/775130/ft1_filtered_4FGL_J1446.3+3111_daily_bin1190.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775130/ft1_filtered_4FGL_J1446.3+3111_daily_bin1190.fits" evtable="EVENTS" scfile=/scratch/kocevski/775130/ft2_4FGL_J1446.3+3111_daily_bin1190.fits sctable="SC_DATA" outfile=/scratch/kocevski/775130/ltcube_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.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/775130/ft2_4FGL_J1446.3+3111_daily_bin1190.fits
.....................!
real 11.85
user 11.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775130/ft1_filtered_4FGL_J1446.3+3111_daily_bin1190.fits evtable="EVENTS" scfile=/scratch/kocevski/775130/ft2_4FGL_J1446.3+3111_daily_bin1190.fits sctable="SC_DATA" expcube=/scratch/kocevski/775130/ltcube_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.fits outfile=/scratch/kocevski/775130/expmap_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.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/775130/ltcube_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.fits
.....................!
real 190.44
user 185.29
sys 4.72

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/775130/ft1_filtered_4FGL_J1446.3+3111_daily_bin1190.fits scfile=/scratch/kocevski/775130/ft2_4FGL_J1446.3+3111_daily_bin1190.fits outfile=/scratch/kocevski/775130/cmap_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775130/ft1_filtered_4FGL_J1446.3+3111_daily_bin1190.fits scfile=/scratch/kocevski/775130/ft2_4FGL_J1446.3+3111_daily_bin1190.fits outfile=/scratch/kocevski/775130/cmap_HighResolution_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.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.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/775130/ft1_filtered_4FGL_J1446.3+3111_daily_bin1190.fits', '/scratch/kocevski/775130/ft2_4FGL_J1446.3+3111_daily_bin1190.fits', expMap='/scratch/kocevski/775130/expmap_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.fits', expCube='/scratch/kocevski/775130/ltcube_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/775130/Model_4FGL_J1446.3+3111_daily_bin1190.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/775130/ft1_filtered_4FGL_J1446.3+3111_daily_bin1190.fits
Spacecraft file(s): /scratch/kocevski/775130/ft2_4FGL_J1446.3+3111_daily_bin1190.fits
Exposure map: /scratch/kocevski/775130/expmap_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.fits
Exposure cube: /scratch/kocevski/775130/ltcube_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/775130/Model_4FGL_J1446.3+3111_daily_bin1190.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) = 7259.41040299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.668       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.7535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .57001       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.626       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2800       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.844       1.0000         .10000E-03   10000.    
    19 'norm      '    .38572       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.572       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5539       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8524       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .25568E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0764       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81317       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7259.380     FROM MIGRAD    STATUS=CONVERGED   1133 CALLS     3774 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3084        3.6139        .26378E-03   -.28014E-04
   2  Prefactor     .10000E-03    9.5424        .18142E-02** at limit **
   3  norm          .10000E-03    .61557        .65251E-03** at limit **
   4  Prefactor     .10000E-03    4.1026        .16830E-02** at limit **
   5  Prefactor     .10000E-03    7.0475        .18142E-02** at limit **
   6  Prefactor     18.668        4.7304        .88414E-04    .18130E-04
   7  norm          .10000E-03    2.9656        .14329E-02** at limit **
   8  norm          8.7536        3.0473        .84651E-04   -.35348E-04
   9  Prefactor     .10000E-03    45.196        .18142E-02** at limit **
  10  norm          .56984        3.0222        .27743E-03   -.86382E-04
  11  norm          3.2053        5.1646        .11316E-02   -.42445E-03
  12  Prefactor     .10000E-03    9.9488        .18142E-02** at limit **
  13  norm          10.891        5.0335        .60699E-03   -.89752E-04
  14  Prefactor     20.623        29.494        .88193E-04    .17145E-04
  15  norm          6.2786        8.9441        .16018E-03   -.10220E-04
  16  Prefactor     5.3370        12.942        .17403E-03    .14698E-04
  17  Prefactor     .10000E-03    3.8924        .16321E-02** at limit **
  18  Prefactor     13.845        8.6890        .10765E-03    .73925E-06
  19  norm          .38535        1.3266        .16284E-03   -.64230E-04
  20  Prefactor     55.578        68.306        .53810E-04    .45213E-05
  21  Prefactor     .10000E-03    5.9602        .36285E-03** at limit **
  22  norm          3.5541        1.4507        .53514E-04    .23369E-04
  23  Prefactor     7.8485        9.6014        .14309E-03   -.10170E-04
  24  Prefactor     .10000E-03    193.55        .84297E-02** at limit **
  25  Prefactor     .10000E-03    5.9509        .18142E-02** at limit **
  26  Normalizat    1.0764        .19461        .23732E-03    .68120E-04
  27  Prefactor     .81320        .17437        .25368E-03    .35852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6677
  norm       = 0.0001
  norm       = 8.75355
  Prefactor  = 0.0001
  norm       = 0.569841
  norm       = 3.20532
  Prefactor  = 0.0001
  norm       = 10.8912
  Prefactor  = 20.623
  norm       = 6.27861
  Prefactor  = 5.33699
  Prefactor  = 0.0001
  Prefactor  = 13.8449
  norm       = 0.385352
  Prefactor  = 55.5778
  Prefactor  = 0.0001
  norm       = 3.55412
  Prefactor  = 7.84846
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.07641
  Prefactor  = 0.813201
 **********
 **   18 **HESSE 
 **********

 FCN=   7259.380     FROM HESSE     STATUS=OK           462 CALLS     4236 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3084        3.6136        .10551E-04   -1.5479    
   2  Prefactor     .10000E-03    9.5435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .61557        .13050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1029        .33661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.668        4.7305        .35366E-05   -1.4844    
   7  norm          .10000E-03    2.9657        .28657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.7536        3.0472        .16930E-04   -1.5116    
   9  Prefactor     .10000E-03    45.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .56984        3.0208        .11097E-04   -1.5557    
  11  norm          3.2053        5.1615        .45263E-04   -1.5350    
  12  Prefactor     .10000E-03    9.9488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.891        5.0334        .24280E-04   -1.5048    
  14  Prefactor     20.623        29.501        .35277E-05   -1.4799    
  15  norm          6.2786        8.9425        .64072E-05   -1.5207    
  16  Prefactor     5.3370        12.939        .69613E-05   -1.5246    
  17  Prefactor     .10000E-03    3.8934        .32643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.845        8.6888        .43060E-05   -1.4964    
  19  norm          .38535        1.3255        .65136E-05   -1.5584    
  20  Prefactor     55.578        68.281        .10762E-04   -1.4216    
  21  Prefactor     .10000E-03    5.9605        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5541        1.4505        .21405E-05   -1.5331    
  23  Prefactor     7.8485        9.5809        .57237E-05   -1.5148    
  24  Prefactor     .10000E-03    198.73        .33719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.9511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0764        .19470        .94928E-05   -.90513    
  27  Prefactor     .81320        .17449        .10147E-04   -.99244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20418e-10
Minuit parameter uncertainties:
  1  3.61416
  2  2.23345e-06
  3  2.45331e-07
  4  4.36094e-06
  5  1.13599e-05
  6  4.73055
  7  3.27659e-07
  8  3.04729
  9  3.9459e-05
  10  2.62401
  11  5.16226
  12  4.34543e-06
  13  5.0336
  14  29.5219
  15  8.94436
  16  12.9458
  17  6.33516e-06
  18  8.68959
  19  1.32565
  20  68.377
  21  1.18385e-05
  22  1.45055
  23  9.58274
  24  0.00122995
  25  3.14777e-06
  26  0.194831
  27  0.174604
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.062e+01  2.952e+01  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:  8.132e-01  1.746e-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.076e+00  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/775130/likelihoodResults_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.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) = 7258.7343458
delta logL = 0.645897305855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7258.72839444
delta logL = 0.651848665788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7435       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8331       1.0000          .0000       10.000    
     3 'Normalizat'    1.0370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83685       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7258.728     FROM MIGRAD    STATUS=FAILED       101 CALLS      365 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7305        221.30        .77258E-03   -.27326E-04
   2  Index         3.8351        6.9097        .67562E-02    .61077E-03
   3  Normalizat    1.0369        .16429        .24107E-03   -.22872E-04
   4  Prefactor     .83666        .15453        .25043E-03   -.10895E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7258.728     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      455 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7305        221.30        .14725E-03   -.27326E-04
   2  Index         3.8351        6.9097        .67316E-03    .61077E-03
   3  Normalizat    1.0369        .16429        .13340E-03   -.22872E-04
   4  Prefactor     .83666        .15453        .11853E-03   -.10895E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7258.728     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      487 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7305        17.844        .30903E-04   -.39363E-04
   2  Index         3.8351        1.5571        .13512E-02   -.74207E-05
   3  Normalizat    1.0369        .18294        .96427E-05   -.22872E-04
   4  Prefactor     .83666        .16943        .10017E-04   -.10895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.73046
  Index      = 3.8351
  Normalizat = 1.03692
  Prefactor  = 0.83666
 **********
 **   18 **HESSE 
 **********

 FCN=   7258.728     FROM HESSE     STATUS=OK            23 CALLS      510 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7305        15.794        .12361E-05   -1.5189    
   2  Index         3.8351        1.3833        .54050E-04   -.23514    
   3  Normalizat    1.0369        .18268        .19285E-05   -.91804    
   4  Prefactor     .83666        .16916        .20034E-05   -.98391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0769e-12
Minuit parameter uncertainties:
  1  15.8041
  2  1.40268
  3  0.182795
  4  0.169261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775130': 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) = 7258.72838891
delta logL = 0.651854200856

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  6.730e+00  1.580e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.835e+00  1.403e+00  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:  8.367e-01  1.693e-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.037e+00  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 221.591 31.195
Photon Index (Free Index): 3.84 +/- 1.40
Photon Flux (Free Index): 5.23e-08 +/- 4.38e-08
Energy Flux (Free Index): 8.06e-06 +/- 6.80e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/775130/cmap_HighResolution_547776001_548035201_4FGL_J1446.3+3111_daily_bin1190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', comment='SUCCESS', energy_flux2='8.06e-06', dlogl='6.52e-01', photon_flux2='5.23e-08', job_status='DONE', time_completed='2021-09-10 09:22:57.221131', photon_index_error2='1.40', photon_index2='3.84', ts='0.60', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='9.15e-08', energy_flux_error2='6.80e-06', EG='1.08', time_epoch_completed='1631290977.22', return_code='0', job_id='775130', GAL2='0.84', EG2='1.04', return_code2='0', photon_flux_error2='4.38e-08', ts2='1.98', photon_index='2.56' WHERE bin_id='1190' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:22:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 775130: <4FGL_J1446.3+3111_daily_bin1190> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1190> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 10 09:06:20 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:06:22 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:06:22 2021
Terminated at Fri Sep 10 09:22:57 2021
Results reported at Fri Sep 10 09:22:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1190 221.591 31.1955 547776001 548035201 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 :                                   846.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

