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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1009
RA = 221.591, Dec = 31.1955
tmin = 500860801, tmax = 501120001
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='774859', job_status='RUN', time_executed='2021-09-10 09:10:06.685558', time_epoch_executed='1631290206.69' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774859

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774859/ft1_4FGL_J1446.3+3111_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774859/ft2_4FGL_J1446.3+3111_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774859/ft1_4FGL_J1446.3+3111_daily_bin1009.fits outfile=/scratch/kocevski/774859/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1009.fits ra=221.591 dec=31.1955 rad=12.0 tmin=500860801.0 tmax=501120001.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.55
user 4.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774859/ft2_4FGL_J1446.3+3111_daily_bin1009.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/774859/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1009.fits evtable="EVENTS" outfile="/scratch/kocevski/774859/ft1_filtered_4FGL_J1446.3+3111_daily_bin1009.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774859/ft1_filtered_4FGL_J1446.3+3111_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/774859/ft2_4FGL_J1446.3+3111_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/774859/ltcube_500860801_501120001_4FGL_J1446.3+3111_daily_bin1009.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/774859/ft2_4FGL_J1446.3+3111_daily_bin1009.fits
.....................!
real 12.40
user 12.00
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774859/ft1_filtered_4FGL_J1446.3+3111_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/774859/ft2_4FGL_J1446.3+3111_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/774859/ltcube_500860801_501120001_4FGL_J1446.3+3111_daily_bin1009.fits outfile=/scratch/kocevski/774859/expmap_500860801_501120001_4FGL_J1446.3+3111_daily_bin1009.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/774859/ltcube_500860801_501120001_4FGL_J1446.3+3111_daily_bin1009.fits
.....................!
real 191.13
user 185.86
sys 4.83

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/774859/ft1_filtered_4FGL_J1446.3+3111_daily_bin1009.fits scfile=/scratch/kocevski/774859/ft2_4FGL_J1446.3+3111_daily_bin1009.fits outfile=/scratch/kocevski/774859/cmap_500860801_501120001_4FGL_J1446.3+3111_daily_bin1009.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774859/ft1_filtered_4FGL_J1446.3+3111_daily_bin1009.fits scfile=/scratch/kocevski/774859/ft2_4FGL_J1446.3+3111_daily_bin1009.fits outfile=/scratch/kocevski/774859/cmap_HighResolution_500860801_501120001_4FGL_J1446.3+3111_daily_bin1009.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .48073       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9448       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2862       1.0000         .10000E-03   10000.    
     8 'norm      '    13.722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3798       1.0000         .10000E-03   10000.    
    11 'norm      '    .23103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9098       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.769       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7227       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5416       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0633       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9315       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4851       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.913       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89699       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94833       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=   5484.752     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3390 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2676       -.77043E-07** at limit **
   2  Prefactor     .10000E-03    8.9161        .81823E-07** at limit **
   3  norm          .48063        4.6752        .53477E-06    .16336E-03
   4  Prefactor     .10000E-03    22.708       -.32901E-06** at limit **
   5  Prefactor     5.2310        16.196       -.41233E-06   -.17530E-03
   6  Prefactor     1.9445        3.2554        .11541E-06    .26383E-03
   7  norm          3.2851        9.9727        .11627E-05   -.84731E-04
   8  norm          13.722        4.0019       -.23121E-07    .18462E-03
   9  Prefactor     .10004E-03    55.079        .36291E-05** at limit **
  10  norm          3.3799        2.6439       -.27623E-07    .65695E-05
  11  norm          .10001E-03    14.217        .86714E-05** at limit **
  12  Prefactor     .10000E-03    24.055       -.43969E-06** at limit **
  13  norm          3.9101        3.7371       -.39549E-07    .45260E-04
  14  Prefactor     34.767        38.642       -.36232E-06   -.10887E-05
  15  norm          .10000E-03    6.0965       -.16486E-07** at limit **
  16  Prefactor     13.779        11.501       -.55623E-07    .50667E-04
  17  Prefactor     1.7223        4.7806        .37418E-05   -.10902E-02
  18  Prefactor     9.5436        9.2702       -.12847E-06   -.15334E-04
  19  norm          1.0628        1.5946       -.74250E-06   -.91242E-03
  20  Prefactor     .10004E-03    72.642       -.34505E-05** at limit **
  21  Prefactor     2.9322        10.303       -.49457E-06   -.48332E-04
  22  norm          1.4850        1.1344       -.41282E-07   -.30628E-03
  23  Prefactor     .10000E-03    7.0126       -.28842E-06** at limit **
  24  Prefactor     46.911        36.339       -.22470E-06   -.32427E-04
  25  Prefactor     .10000E-03    11.026       -.19441E-06** at limit **
  26  Normalizat    .89711        .18906        .12500E-05    .45485E-03
  27  Prefactor     .94817        .17260       -.91299E-07    .48492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.480629
  Prefactor  = 0.000100001
  Prefactor  = 5.23098
  Prefactor  = 1.94448
  norm       = 3.28507
  norm       = 13.7222
  Prefactor  = 0.000100037
  norm       = 3.37991
  norm       = 0.000100005
  Prefactor  = 0.000100001
  norm       = 3.91015
  Prefactor  = 34.7672
  norm       = 0.0001
  Prefactor  = 13.7786
  Prefactor  = 1.72226
  Prefactor  = 9.54364
  norm       = 1.0628
  Prefactor  = 0.000100038
  Prefactor  = 2.93221
  norm       = 1.485
  Prefactor  = 0.0001
  Prefactor  = 46.9112
  Prefactor  = 0.0001
  Normalizat = 0.897112
  Prefactor  = 0.94817
 **********
 **   18 **HESSE 
 **********

 FCN=   5484.752     FROM HESSE     STATUS=OK           488 CALLS     3878 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3033        .14938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .48063        4.7656        .30472E-03   -1.5569    
   4  Prefactor     .10000E-03    22.776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2310        16.253        .87873E-03   -1.5251    
   6  Prefactor     1.9445        3.2347        .16490E-03   -1.5429    
   7  norm          3.2851        9.9956        .11168E-02   -1.5345    
   8  norm          13.722        4.0033        .77141E-04   -1.4967    
   9  Prefactor     .10004E-03    57.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3799        2.6410        .10347E-03   -1.5340    
  11  norm          .10001E-03    19.016        .33594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9101        3.7382        .13512E-03   -1.5312    
  14  Prefactor     34.767        38.750        .67962E-04   -1.4528    
  15  norm          .10000E-03    6.1219        .17856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.779        11.511        .10790E-03   -1.4965    
  17  Prefactor     1.7223        7.2784        .16001E-02   -1.5445    
  18  Prefactor     9.5436        9.3108        .12974E-03   -1.5090    
  19  norm          1.0628        1.6421        .10321E-03   -1.5502    
  20  Prefactor     .10004E-03    75.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.9322        10.296        .23725E-03   -1.5365    
  22  norm          1.4850        1.1345        .17600E-03   -1.5464    
  23  Prefactor     .10000E-03    7.0753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     46.911        36.303        .58541E-04   -1.4337    
  25  Prefactor     .10000E-03    11.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89711        .22289        .24931E-03   -.96562    
  27  Prefactor     .94817        .20526        .22820E-03   -.94478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.354e-09
Minuit parameter uncertainties:
  1  1.35906e-05
  2  2.53998e-05
  3  3.02687
  4  0.000243614
  5  16.2668
  6  3.23495
  7  10.0007
  8  4.00336
  9  0.00293367
  10  2.64108
  11  0.000627207
  12  0.000313502
  13  3.73838
  14  38.778
  15  1.29409e-05
  16  11.5124
  17  7.0823
  18  9.3122
  19  1.64222
  20  0.00338466
  21  10.3021
  22  1.13455
  23  6.1386e-05
  24  36.3198
  25  7.18162e-05
  26  0.223122
  27  0.20543
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  3.477e+01  3.878e+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:  9.482e-01  2.054e-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:  8.971e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.15e-05

TS (Fixed Index): 1.04
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774859/likelihoodResults_500860801_501120001_4FGL_J1446.3+3111_daily_bin1009.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) = 5484.64543536
delta logL = 0.106949331696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5484.64467613
delta logL = 0.107708561831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.584       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2207       1.0000          .0000       10.000    
     3 'Normalizat'    .90658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93970       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=   5484.645     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      298 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.522        51.758        .58129E-04    .83942E-04
   2  Index         2.2196        .66329        .91668E-02   -.26269E-04
   3  Normalizat    .90666        .20677        .24810E-03   -.61541E-04
   4  Prefactor     .93970        .19371        .22905E-03    .41543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.5224
  Index      = 2.21957
  Normalizat = 0.906657
  Prefactor  = 0.939705
 **********
 **   18 **HESSE 
 **********

 FCN=   5484.645     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.522        50.993        .11626E-04   -1.4328    
   2  Index         2.2196        .65332        .36667E-03   -.58967    
   3  Normalizat    .90666        .20695        .99238E-05   -.96227    
   4  Prefactor     .93970        .19385        .91622E-05   -.94767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23291e-10
Minuit parameter uncertainties:
  1  51.0402
  2  0.656043
  3  0.207131
  4  0.193988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774859': 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) = 5484.64467304
delta logL = 0.107711653941

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  4.752e+01  5.104e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.220e+00  6.560e-01  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.397e-01  1.940e-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:  9.067e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.22 +/- 0.66
Photon Flux (Free Index): 3.35e-08 +/- 3.79e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.81e-05

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/774859/cmap_HighResolution_500860801_501120001_4FGL_J1446.3+3111_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.87e-03', comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.45e-05', photon_flux_error='4.21e-08', dlogl='1.08e-01', energy_flux='1.03e-05', photon_flux2='3.35e-08', job_status='DONE', time_completed='2021-09-10 09:21:39.131355', photon_index_error2='0.66', photon_index2='2.22', ts='1.04', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.81e-05', EG='0.90', time_epoch_completed='1631290899.13', return_code='0', job_id='774859', GAL2='0.94', EG2='0.91', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.79e-08', ts2='1.24', photon_index='2.56' WHERE bin_id='1009' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:21:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 774859: <4FGL_J1446.3+3111_daily_bin1009> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1009 221.591 31.1955 500860801 501120001 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 :                                   690.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             235.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

