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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin651
RA = 221.591, Dec = 31.1955
tmin = 408067201, tmax = 408326401
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='772225', job_status='RUN', time_executed='2021-09-10 08:56:39.971021', time_epoch_executed='1631289399.97' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772225/ft1_4FGL_J1446.3+3111_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772225/ft2_4FGL_J1446.3+3111_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772225/ft1_4FGL_J1446.3+3111_daily_bin651.fits outfile=/scratch/kocevski/772225/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin651.fits ra=221.591 dec=31.1955 rad=12.0 tmin=408067201.0 tmax=408326401.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.86
user 3.65
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772225/ft2_4FGL_J1446.3+3111_daily_bin651.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/772225/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin651.fits evtable="EVENTS" outfile="/scratch/kocevski/772225/ft1_filtered_4FGL_J1446.3+3111_daily_bin651.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/772225/ft1_filtered_4FGL_J1446.3+3111_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/772225/ft2_4FGL_J1446.3+3111_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/772225/ltcube_408067201_408326401_4FGL_J1446.3+3111_daily_bin651.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/772225/ft2_4FGL_J1446.3+3111_daily_bin651.fits
.....................!
real 11.71
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772225/ft1_filtered_4FGL_J1446.3+3111_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/772225/ft2_4FGL_J1446.3+3111_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/772225/ltcube_408067201_408326401_4FGL_J1446.3+3111_daily_bin651.fits outfile=/scratch/kocevski/772225/expmap_408067201_408326401_4FGL_J1446.3+3111_daily_bin651.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/772225/ltcube_408067201_408326401_4FGL_J1446.3+3111_daily_bin651.fits
.....................!
real 191.02
user 185.99
sys 4.66

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/772225/ft1_filtered_4FGL_J1446.3+3111_daily_bin651.fits scfile=/scratch/kocevski/772225/ft2_4FGL_J1446.3+3111_daily_bin651.fits outfile=/scratch/kocevski/772225/cmap_408067201_408326401_4FGL_J1446.3+3111_daily_bin651.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772225/ft1_filtered_4FGL_J1446.3+3111_daily_bin651.fits scfile=/scratch/kocevski/772225/ft2_4FGL_J1446.3+3111_daily_bin651.fits outfile=/scratch/kocevski/772225/cmap_HighResolution_408067201_408326401_4FGL_J1446.3+3111_daily_bin651.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/772225/ft1_filtered_4FGL_J1446.3+3111_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/772225/ft2_4FGL_J1446.3+3111_daily_bin651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/772225/Model_4FGL_J1446.3+3111_daily_bin651.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/772225/ft1_filtered_4FGL_J1446.3+3111_daily_bin651.fits.....................!
real 40.06
user 38.69
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.652       1.0000         .10000E-03   10000.    
     8 'norm      '    12.874       1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.889       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.732       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13613E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.7958       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.089       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.165       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.075       1.0000         .10000E-03   10000.    
    19 'norm      '    7.1120       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11361E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.3362       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4095       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .26251E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .74821       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3556       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=   4535.441     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3276 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5565       -.29885E-06** at limit **
   2  Prefactor     .10000E-03    19.688       -.12111E-05** at limit **
   3  norm          .10000E-03    4.2092       -.35104E-06** at limit **
   4  Prefactor     .10000E-03    16.176       -.83187E-06** at limit **
   5  Prefactor     4.2148        114.30        .24571E-03    .16769E-03
   6  Prefactor     .10000E-03    2.5809       -.57616E-07** at limit **
   7  norm          10.650        17.523       -.49711E-05   -.98389E-04
   8  norm          12.874        4.0128       -.39423E-06   -.81001E-05
   9  Prefactor     73.461        132.44       -.38855E-03   -.44082E-04
  10  norm          .10000E-03    .79305       -.12503E-06** at limit **
  11  norm          17.731        16.362        .10935E-04   -.98194E-04
  12  Prefactor     .10002E-03    87.793       -.58000E-04** at limit **
  13  norm          6.7962        5.3362        .10205E-06   -.84793E-04
  14  Prefactor     56.956        59.681       -.35733E-04   -.22148E-05
  15  norm          .10000E-03    12.177        .68264E-07** at limit **
  16  Prefactor     38.189        30.333       -.10469E-04   -.35435E-04
  17  Prefactor     .10000E-03    8.4320        .39086E-06** at limit **
  18  Prefactor     12.076        11.307       -.59210E-05   -.64152E-04
  19  norm          7.1119        5.2765        .36911E-05   -.47283E-04
  20  Prefactor     .10000E-03    95.479        .54182E-04** at limit **
  21  Prefactor     .10000E-03    4.9197       -.77156E-07** at limit **
  22  norm          3.3350        2.9209       -.25988E-06    .10546E-03
  23  Prefactor     3.3965        41.005       -.29366E-06   -.65720E-05
  24  Prefactor     .10000E-03    95.584       -.24069E-04** at limit **
  25  Prefactor     .10000E-03    58.194        .60030E-05** at limit **
  26  Normalizat    .74817        .26291        .17322E-04   -.22629E-03
  27  Prefactor     1.3557        .21752       -.18041E-05    .24880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.21483
  Prefactor  = 0.0001
  norm       = 10.65
  norm       = 12.8744
  Prefactor  = 73.4606
  norm       = 0.0001
  norm       = 17.731
  Prefactor  = 0.00010002
  norm       = 6.7962
  Prefactor  = 56.9561
  norm       = 0.0001
  Prefactor  = 38.1889
  Prefactor  = 0.0001
  Prefactor  = 12.0762
  norm       = 7.11191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.335
  Prefactor  = 3.39648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.748169
  Prefactor  = 1.3557
 **********
 **   18 **HESSE 
 **********

 FCN=   4535.441     FROM HESSE     STATUS=OK           484 CALLS     3760 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6501        .15499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.2565        .13490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2148        113.67        .19427E-03   -1.5297    
   6  Prefactor     .10000E-03    2.5985        .10562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.650        17.510        .12276E-03   -1.5055    
   8  norm          12.874        4.0190        .72022E-04   -1.4990    
   9  Prefactor     73.461        132.61        .23354E-03   -1.3992    
  10  norm          .10000E-03    .79601        .58561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.731        16.346        .95113E-04   -1.4866    
  12  Prefactor     .10002E-03    87.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.7962        5.3399        .13186E-03   -1.5187    
  14  Prefactor     56.956        59.815        .53094E-04   -1.4197    
  15  norm          .10000E-03    12.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.189        30.319        .64878E-04   -1.4471    
  17  Prefactor     .10000E-03    8.4380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.076        11.361        .11528E-03   -1.5013    
  19  norm          7.1119        5.2762        .12647E-03   -1.5175    
  20  Prefactor     .10000E-03    95.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9386        .14587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.3350        2.8392        .80274E-04   -1.5343    
  23  Prefactor     3.3965        38.525        .21909E-03   -1.5339    
  24  Prefactor     .10000E-03    95.924        .21445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    58.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .74817        .30991        .35112E-03   -1.0202    
  27  Prefactor     1.3557        .25985        .22899E-03   -.81666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62408e-09
Minuit parameter uncertainties:
  1  8.28027e-05
  2  0.000332034
  3  8.4254e-05
  4  0.000523845
  5  43.8686
  6  2.59932e-05
  7  17.5185
  8  4.01906
  9  133.151
  10  5.58452e-06
  11  16.3504
  12  0.00267566
  13  5.3403
  14  59.8782
  15  6.10813e-05
  16  30.3308
  17  9.9375e-05
  18  11.3628
  19  5.27653
  20  0.000139295
  21  2.34931e-05
  22  2.83932
  23  22.8961
  24  0.000231065
  25  8.61734e-05
  26  0.310636
  27  0.260095
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.696e+01  5.988e+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:  1.356e+00  2.601e-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:  7.482e-01  3.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 6.49e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.78e-05

TS (Fixed Index): 1.28
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772225/likelihoodResults_408067201_408326401_4FGL_J1446.3+3111_daily_bin651.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) = 4535.42139657
delta logL = 0.0193252048721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4535.4170751
delta logL = 0.0236466742035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.539       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7308       1.0000          .0000       10.000    
     3 'Normalizat'    .73851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3608       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=   4535.417     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      283 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.547        63.440        .55864E-04    .10786E-04
   2  Index         2.7303        .84088        .83479E-02    .21829E-03
   3  Normalizat    .73860        .29965        .35320E-03   -.44420E-05
   4  Prefactor     1.3608        .25129        .22862E-03   -.95247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.5465
  Index      = 2.73029
  Normalizat = 0.738598
  Prefactor  = 1.36083
 **********
 **   18 **HESSE 
 **********

 FCN=   4535.417     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.547        61.530        .22346E-05   -1.4271    
   2  Index         2.7303        .81438        .16696E-02   -.47118    
   3  Normalizat    .73860        .29988        .14128E-04   -1.0239    
   4  Prefactor     1.3608        .25142        .45725E-04   -.81516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88884e-11
Minuit parameter uncertainties:
  1  61.606
  2  0.818986
  3  0.300548
  4  0.251644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772225': 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) = 4535.41707482
delta logL = 0.0236469497668

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.155e+01  6.161e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.730e+00  8.190e-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:  1.361e+00  2.516e-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:  7.386e-01  3.005e-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.73 +/- 0.82
Photon Flux (Free Index): 7.14e-08 +/- 8.23e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.71e-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/772225/cmap_HighResolution_408067201_408326401_4FGL_J1446.3+3111_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='1.68e-05', photon_flux_error='6.49e-08', dlogl='2.36e-02', energy_flux='1.69e-05', photon_flux2='7.14e-08', job_status='DONE', time_completed='2021-09-10 09:06:29.763655', photon_index_error2='0.82', photon_index2='2.73', ts='1.28', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='1.71e-05', EG='0.75', time_epoch_completed='1631289989.76', return_code='0', job_id='772225', GAL2='1.36', EG2='0.74', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='8.23e-08', ts2='1.33', photon_index='2.56' WHERE bin_id='651' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 772225: <4FGL_J1446.3+3111_daily_bin651> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin651> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 08:56:31 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:56:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 08:56:32 2021
Terminated at Fri Sep 10 09:06:30 2021
Results reported at Fri Sep 10 09:06:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin651 221.591 31.1955 408067201 408326401 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 :                                   588.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            599 sec.

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

