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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1319
RA = 221.591, Dec = 31.1955
tmin = 581212801, tmax = 581472001
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='775317', job_status='RUN', time_executed='2021-09-10 09:09:00.068146', time_epoch_executed='1631290140.07' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775317

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775317/ft1_4FGL_J1446.3+3111_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775317/ft2_4FGL_J1446.3+3111_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775317/ft1_4FGL_J1446.3+3111_daily_bin1319.fits outfile=/scratch/kocevski/775317/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1319.fits ra=221.591 dec=31.1955 rad=12.0 tmin=581212801.0 tmax=581472001.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 2.93
user 2.73
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775317/ft1_filtered_4FGL_J1446.3+3111_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/775317/ft2_4FGL_J1446.3+3111_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/775317/ltcube_581212801_581472001_4FGL_J1446.3+3111_daily_bin1319.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/775317/ft2_4FGL_J1446.3+3111_daily_bin1319.fits
.....................!
real 12.25
user 11.89
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775317/ft1_filtered_4FGL_J1446.3+3111_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/775317/ft2_4FGL_J1446.3+3111_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/775317/ltcube_581212801_581472001_4FGL_J1446.3+3111_daily_bin1319.fits outfile=/scratch/kocevski/775317/expmap_581212801_581472001_4FGL_J1446.3+3111_daily_bin1319.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/775317/ltcube_581212801_581472001_4FGL_J1446.3+3111_daily_bin1319.fits
.....................!
real 191.62
user 186.65
sys 4.58

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/775317/ft1_filtered_4FGL_J1446.3+3111_daily_bin1319.fits scfile=/scratch/kocevski/775317/ft2_4FGL_J1446.3+3111_daily_bin1319.fits outfile=/scratch/kocevski/775317/cmap_581212801_581472001_4FGL_J1446.3+3111_daily_bin1319.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775317/ft1_filtered_4FGL_J1446.3+3111_daily_bin1319.fits scfile=/scratch/kocevski/775317/ft2_4FGL_J1446.3+3111_daily_bin1319.fits outfile=/scratch/kocevski/775317/cmap_HighResolution_581212801_581472001_4FGL_J1446.3+3111_daily_bin1319.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4676       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.871       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.992       1.0000         .10000E-03   10000.    
     7 'norm      '    12.226       1.0000         .10000E-03   10000.    
     8 'norm      '    8.3148       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3184       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.138       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.2755       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7651       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.409       1.0000         .10000E-03   10000.    
    19 'norm      '    .33996       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3286       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.2535       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94401       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=   9099.517     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     2813 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1852        3.6384        .39121E-06   -.19804E-03
   2  Prefactor     .10000E-03    4.0809        .55509E-07** at limit **
   3  norm          4.4676        3.2792       -.76065E-06   -.10566E-03
   4  Prefactor     11.873        9.5591       -.69994E-07   -.37459E-04
   5  Prefactor     .10000E-03    6.9314        .72588E-06** at limit **
   6  Prefactor     32.993        5.5589       -.15295E-06    .13545E-04
   7  norm          12.226        11.041       -.28185E-06   -.12074E-04
   8  norm          8.3148        3.1998       -.68467E-07   -.25819E-06
   9  Prefactor     .10000E-03    16.678        .97466E-05** at limit **
  10  norm          2.3181        1.3927        .27372E-06   -.30877E-02
  11  norm          2.4134        2.9853       -.19459E-05   -.16711E-03
  12  Prefactor     24.139        20.292        .82767E-06   -.30410E-05
  13  norm          .10000E-03    1.9571       -.24721E-07** at limit **
  14  Prefactor     .10000E-03    15.081       -.14749E-05** at limit **
  15  norm          7.2756        5.5402       -.58003E-07    .18339E-04
  16  Prefactor     3.7657        10.535        .14030E-06    .11443E-04
  17  Prefactor     .10000E-03    6.7520       -.50694E-06** at limit **
  18  Prefactor     13.409        9.1750       -.23561E-07   -.20997E-04
  19  norm          .34006        .79761        .29063E-08   -.19070E-03
  20  Prefactor     .10000E-03    19.657        .54466E-05** at limit **
  21  Prefactor     .10000E-03    14.398       -.46921E-05** at limit **
  22  norm          .10000E-03    .50573       -.19814E-06** at limit **
  23  Prefactor     4.3298        7.8660        .13492E-05    .28331E-03
  24  Prefactor     .10000E-03    21.357       -.95830E-05** at limit **
  25  Prefactor     5.2521        16.483       -.20099E-05   -.10152E-04
  26  Normalizat    1.1785        .16321        .28578E-06    .12400E-03
  27  Prefactor     .94407        .14726        .18093E-07    .17251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18516
  Prefactor  = 0.0001
  norm       = 4.46765
  Prefactor  = 11.8726
  Prefactor  = 0.0001
  Prefactor  = 32.9927
  norm       = 12.2261
  norm       = 8.31477
  Prefactor  = 0.0001
  norm       = 2.31811
  norm       = 2.41338
  Prefactor  = 24.1391
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.27564
  Prefactor  = 3.76573
  Prefactor  = 0.0001
  Prefactor  = 13.4089
  norm       = 0.340063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.32976
  Prefactor  = 0.0001
  Prefactor  = 5.25213
  Normalizat = 1.17855
  Prefactor  = 0.944065
 **********
 **   18 **HESSE 
 **********

 FCN=   9099.517     FROM HESSE     STATUS=OK           494 CALLS     3307 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1852        3.6449        .30875E-03   -1.5490    
   2  Prefactor     .10000E-03    4.0875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4676        3.2741        .14141E-03   -1.5285    
   4  Prefactor     11.873        9.5710        .11627E-03   -1.5019    
   5  Prefactor     .10000E-03    6.9650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.993        5.5832        .69762E-04   -1.4559    
   7  norm          12.226        11.035        .11456E-03   -1.5009    
   8  norm          8.3148        3.2021        .10216E-03   -1.5131    
   9  Prefactor     .10000E-03    16.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3181        3.9630        .12002E-02   -1.5403    
  11  norm          2.4134        2.9770        .17758E-03   -1.5397    
  12  Prefactor     24.139        20.286        .81532E-04   -1.4725    
  13  norm          .10000E-03    1.9732        .13029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2756        5.5362        .14870E-03   -1.5168    
  16  Prefactor     3.7657        10.500        .20806E-03   -1.5320    
  17  Prefactor     .10000E-03    6.9850        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.409        9.1923        .54692E-03   -1.4975    
  19  norm          .34006        .77385        .12236E-03   -1.5591    
  20  Prefactor     .10000E-03    19.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .81619        .12112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3298        7.3376        .19362E-03   -1.5292    
  24  Prefactor     .10000E-03    21.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.2521        16.484        .17537E-03   -1.5250    
  26  Normalizat    1.1785        .19229        .25616E-03   -.87268    
  27  Prefactor     .94407        .17477        .26715E-03   -.94618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76466e-09
Minuit parameter uncertainties:
  1  3.64558
  2  2.10422e-06
  3  3.27423
  4  9.57219
  5  1.55314e-05
  6  5.58324
  7  11.0366
  8  3.20218
  9  2.38792e-05
  10  3.96342
  11  2.97717
  12  20.2922
  13  5.52348e-07
  14  6.83964e-06
  15  5.5366
  16  10.5048
  17  9.93645e-06
  18  9.19323
  19  0.773871
  20  3.92809e-05
  21  6.35552e-06
  22  1.89675e-05
  23  7.33909
  24  0.000108783
  25  16.498
  26  0.192404
  27  0.174875
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  6.840e-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:  9.441e-01  1.749e-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.179e+00  1.924e-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: 5.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775317/likelihoodResults_581212801_581472001_4FGL_J1446.3+3111_daily_bin1319.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) = 9099.51684625
delta logL = -0.000315430563205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9099.51653123
delta logL = -4.03320882469e-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     '    3.1272       1.0000          .0000       10.000    
     3 'Normalizat'    1.1785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94407       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=   9099.517     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      272 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    125.20        .18142E-02** at limit **
   2  Index         3.0776        8.4609        .50000        .86522E-05
   3  Normalizat    1.1785        .11986E-01    .25616E-03    .31156E-04
   4  Prefactor     .94406        .11388E-01    .26715E-03    .16001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100918
  Index      = 3.07761
  Normalizat = 1.17855
  Prefactor  = 0.944065
 **********
 **   18 **HESSE 
 **********

 FCN=   9099.517     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10092E-03    539.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0776        8.4443        .50000       -.39464    
   3  Normalizat    1.1785        .25942E-01    .10246E-04   -.87268    
   4  Prefactor     .94406        .24646E-01    .10686E-04   -.94618    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.119e-09
Minuit parameter uncertainties:
  1  0.0449303
  2  890.5
  3  0.0259427
  4  0.0246464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775317': 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) = 9099.51653116
delta logL = -3.35478034685e-07

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.009e-04  4.493e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.078e+00  8.905e+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:  9.441e-01  2.465e-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.179e+00  2.594e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/775317/cmap_HighResolution_581212801_581472001_4FGL_J1446.3+3111_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-09-10 09:22:56.618518', job_id='775317', GAL2='0.94', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631290976.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-3.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1319' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:22:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 775317: <4FGL_J1446.3+3111_daily_bin1319> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1319> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 10 09:06:33 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:06:35 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:35 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_bin1319 221.591 31.1955 581212801 581472001 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 :                                   834.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

