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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1149
RA = 221.591, Dec = 31.1955
tmin = 537148801, tmax = 537408001
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='775067', job_status='RUN', time_executed='2021-09-10 09:10:04.069833', time_epoch_executed='1631290204.07' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775067

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775067/ft1_4FGL_J1446.3+3111_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775067/ft2_4FGL_J1446.3+3111_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775067/ft1_4FGL_J1446.3+3111_daily_bin1149.fits outfile=/scratch/kocevski/775067/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1149.fits ra=221.591 dec=31.1955 rad=12.0 tmin=537148801.0 tmax=537408001.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.54
user 3.30
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775067/ft2_4FGL_J1446.3+3111_daily_bin1149.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/775067/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1149.fits evtable="EVENTS" outfile="/scratch/kocevski/775067/ft1_filtered_4FGL_J1446.3+3111_daily_bin1149.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/775067/ft1_filtered_4FGL_J1446.3+3111_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/775067/ft2_4FGL_J1446.3+3111_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/775067/ltcube_537148801_537408001_4FGL_J1446.3+3111_daily_bin1149.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/775067/ft2_4FGL_J1446.3+3111_daily_bin1149.fits
.....................!
real 12.36
user 11.95
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775067/ft1_filtered_4FGL_J1446.3+3111_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/775067/ft2_4FGL_J1446.3+3111_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/775067/ltcube_537148801_537408001_4FGL_J1446.3+3111_daily_bin1149.fits outfile=/scratch/kocevski/775067/expmap_537148801_537408001_4FGL_J1446.3+3111_daily_bin1149.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/775067/ltcube_537148801_537408001_4FGL_J1446.3+3111_daily_bin1149.fits
.....................!
real 191.76
user 185.77
sys 5.44

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/775067/ft1_filtered_4FGL_J1446.3+3111_daily_bin1149.fits scfile=/scratch/kocevski/775067/ft2_4FGL_J1446.3+3111_daily_bin1149.fits outfile=/scratch/kocevski/775067/cmap_537148801_537408001_4FGL_J1446.3+3111_daily_bin1149.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/775067/ft1_filtered_4FGL_J1446.3+3111_daily_bin1149.fits scfile=/scratch/kocevski/775067/ft2_4FGL_J1446.3+3111_daily_bin1149.fits outfile=/scratch/kocevski/775067/cmap_HighResolution_537148801_537408001_4FGL_J1446.3+3111_daily_bin1149.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   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 '    7.8440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8284       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3345       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3583       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7509       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.810       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28279       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4467       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7923       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.101       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1216       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90610       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=   6676.444     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3261 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9069       -.35692E-06** at limit **
   2  Prefactor     .10000E-03    4.9254        .26345E-05** at limit **
   3  norm          .10000E-03    1.5560        .40944E-08** at limit **
   4  Prefactor     7.8397        8.2439       -.45449E-06   -.48230E-03
   5  Prefactor     .10000E-03    13.671       -.10717E-04** at limit **
   6  Prefactor     6.8285        3.7018       -.61618E-07   -.43521E-04
   7  norm          .10000E-03    2.9462        .61616E-06** at limit **
   8  norm          4.3346        2.6275        .27967E-07   -.23913E-04
   9  Prefactor     .10000E-03    17.698        .20074E-05** at limit **
  10  norm          5.3584        3.3888       -.70253E-06   -.81794E-04
  11  norm          .10000E-03    2.5747        .69905E-07** at limit **
  12  Prefactor     .10000E-03    42.981       -.33242E-04** at limit **
  13  norm          1.7509        4.5015       -.11718E-05   -.92140E-03
  14  Prefactor     31.812        32.532        .18081E-05    .17047E-04
  15  norm          .10000E-03    7.3049       -.46604E-05** at limit **
  16  Prefactor     .10000E-03    4.5280       -.10587E-05** at limit **
  17  Prefactor     .28439        4.4333       -.12379E-05   -.21717E-03
  18  Prefactor     7.4469        7.0758        .22622E-06    .33584E-03
  19  norm          .10000E-03    .52552        .68053E-07** at limit **
  20  Prefactor     .10000E-03    35.498        .28635E-04** at limit **
  21  Prefactor     .10000E-03    8.0915        .17781E-05** at limit **
  22  norm          3.7919        1.3035       -.48303E-07   -.90532E-03
  23  Prefactor     .10000E-03    10.330        .23573E-05** at limit **
  24  Prefactor     .10000E-03    9.7562        .55386E-05** at limit **
  25  Prefactor     17.101        16.600        .12456E-06    .10197E-03
  26  Normalizat    1.1216        .17198        .47260E-06    .22537E-03
  27  Prefactor     .90608        .15685       -.43627E-07    .14929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.83974
  Prefactor  = 0.0001
  Prefactor  = 6.82851
  norm       = 0.0001
  norm       = 4.33459
  Prefactor  = 0.0001
  norm       = 5.35836
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75089
  Prefactor  = 31.8118
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.284393
  Prefactor  = 7.44693
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.79193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1013
  Normalizat = 1.12163
  Prefactor  = 0.906084
 **********
 **   18 **HESSE 
 **********

 FCN=   6676.444     FROM HESSE     STATUS=OK           486 CALLS     3747 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9561        .13602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9271        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6067        .19899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8397        8.2582        .71585E-03   -1.5148    
   5  Prefactor     .10000E-03    13.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8285        3.7125        .11034E-03   -1.5185    
   7  norm          .10000E-03    2.9465        .13697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3346        2.6267        .99594E-04   -1.5292    
   9  Prefactor     .10000E-03    17.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3584        3.3892        .11586E-03   -1.5245    
  11  norm          .10000E-03    2.6412        .25601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7509        4.5225        .26667E-03   -1.5443    
  14  Prefactor     31.812        32.613        .71044E-04   -1.4579    
  15  norm          .10000E-03    7.4533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5378        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .28439        15.589        .32165E-02   -1.5601    
  18  Prefactor     7.4469        7.0858        .73485E-03   -1.5162    
  19  norm          .10000E-03    .86224        .11136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.7919        1.2982        .51924E-04   -1.5318    
  23  Prefactor     .10000E-03    10.594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.7527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.101        16.603        .48426E-03   -1.4881    
  26  Normalizat    1.1216        .19731        .23453E-03   -.89060    
  27  Prefactor     .90608        .18050        .24273E-03   -.95929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67516e-08
Minuit parameter uncertainties:
  1  5.16717e-07
  2  2.26746e-06
  3  6.90014e-07
  4  8.25936
  5  9.89334e-05
  6  3.71262
  7  1.33907e-06
  8  2.62681
  9  6.97046e-06
  10  3.38933
  11  3.08432e-06
  12  0.000175553
  13  4.52338
  14  32.6316
  15  3.15624e-05
  16  2.60008e-06
  17  4.21153
  18  7.08656
  19  5.73402e-06
  20  1.50967e-05
  21  1.60405e-05
  22  1.29826
  23  2.96234e-05
  24  2.76358e-06
  25  16.6073
  26  0.197444
  27  0.180618
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  3.181e+01  3.263e+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.061e-01  1.806e-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.122e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 9.44e-06 +/- 9.69e-06

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

Saving results to:
/scratch/kocevski/775067/likelihoodResults_537148801_537408001_4FGL_J1446.3+3111_daily_bin1149.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) = 6676.41706377
delta logL = 0.0270598067391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6676.40683809
delta logL = 0.0372854829475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.049       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7539       1.0000          .0000       10.000    
     3 'Normalizat'    1.1164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90923       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=   6676.407     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      278 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.062        36.318        .77027E-04    .73649E-04
   2  Index         2.7545        .79494        .85452E-02   -.16489E-04
   3  Normalizat    1.1165        .19083        .23500E-03    .32848E-04
   4  Prefactor     .90919        .17744        .24236E-03   -.26494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0617
  Index      = 2.75453
  Normalizat = 1.11645
  Prefactor  = 0.90919
 **********
 **   18 **HESSE 
 **********

 FCN=   6676.407     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.062        34.091        .30811E-05   -1.4667    
   2  Index         2.7545        .74603        .34181E-03   -.46575    
   3  Normalizat    1.1165        .19104        .94002E-05   -.89225    
   4  Prefactor     .90919        .17758        .48472E-04   -.95821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19022e-10
Minuit parameter uncertainties:
  1  34.1157
  2  0.749545
  3  0.191159
  4  0.177691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775067': 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) = 6676.40683701
delta logL = 0.0372865595355

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.706e+01  3.412e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.755e+00  7.495e-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.092e-01  1.777e-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.116e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.75 +/- 0.75
Photon Flux (Free Index): 3.88e-08 +/- 4.02e-08
Energy Flux (Free Index): 8.96e-06 +/- 9.15e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/775067/cmap_HighResolution_537148801_537408001_4FGL_J1446.3+3111_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.56e-03', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='8.96e-06', photon_flux_error='3.54e-08', dlogl='3.73e-02', energy_flux='9.44e-06', photon_flux2='3.88e-08', job_status='DONE', time_completed='2021-09-10 09:22:30.808727', photon_index_error2='0.75', photon_index2='2.75', ts='1.26', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='9.15e-06', EG='1.12', time_epoch_completed='1631290950.81', return_code='0', job_id='775067', GAL2='0.91', EG2='1.12', return_code2='0', energy_flux_error='9.69e-06', photon_flux_error2='4.02e-08', ts2='1.33', photon_index='2.56' WHERE bin_id='1149' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:22:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 775067: <4FGL_J1446.3+3111_daily_bin1149> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1149 221.591 31.1955 537148801 537408001 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 :                                   745.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

