/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 176 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 = 7494
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1446.3+3111_daily_bin38
RA = 221.591, Dec = 31.1955
tmin = 249177601, tmax = 249436801
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='767820', job_status='RUN', time_executed='2021-09-10 08:44:40.829441', time_epoch_executed='1631288680.83' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/767820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/767820/ft1_4FGL_J1446.3+3111_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/767820/ft2_4FGL_J1446.3+3111_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/767820/ft1_4FGL_J1446.3+3111_daily_bin38.fits outfile=/scratch/kocevski/767820/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin38.fits ra=221.591 dec=31.1955 rad=12.0 tmin=249177601.0 tmax=249436801.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 1.45
user 1.25
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/767820/ft2_4FGL_J1446.3+3111_daily_bin38.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/767820/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin38.fits evtable="EVENTS" outfile="/scratch/kocevski/767820/ft1_filtered_4FGL_J1446.3+3111_daily_bin38.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/767820/ft1_filtered_4FGL_J1446.3+3111_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/767820/ft2_4FGL_J1446.3+3111_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/767820/ltcube_249177601_249436801_4FGL_J1446.3+3111_daily_bin38.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/767820/ft2_4FGL_J1446.3+3111_daily_bin38.fits
.....................!
real 12.59
user 12.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/767820/ft1_filtered_4FGL_J1446.3+3111_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/767820/ft2_4FGL_J1446.3+3111_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/767820/ltcube_249177601_249436801_4FGL_J1446.3+3111_daily_bin38.fits outfile=/scratch/kocevski/767820/expmap_249177601_249436801_4FGL_J1446.3+3111_daily_bin38.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/767820/ltcube_249177601_249436801_4FGL_J1446.3+3111_daily_bin38.fits
.....................!
real 191.23
user 185.40
sys 5.46

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/767820/ft1_filtered_4FGL_J1446.3+3111_daily_bin38.fits scfile=/scratch/kocevski/767820/ft2_4FGL_J1446.3+3111_daily_bin38.fits outfile=/scratch/kocevski/767820/cmap_249177601_249436801_4FGL_J1446.3+3111_daily_bin38.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/767820/ft1_filtered_4FGL_J1446.3+3111_daily_bin38.fits scfile=/scratch/kocevski/767820/ft2_4FGL_J1446.3+3111_daily_bin38.fits outfile=/scratch/kocevski/767820/cmap_HighResolution_249177601_249436801_4FGL_J1446.3+3111_daily_bin38.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.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6904       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13734E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5023       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.324       1.0000         .10000E-03   10000.    
     8 'norm      '    4.8605       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4664       1.0000         .10000E-03   10000.    
    11 'norm      '    .19031       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.6721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.199       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0758       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0135       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.1117       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9600       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.026       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0580       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82141       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=   5619.555     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3309 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9307        .21099E-07** at limit **
   2  Prefactor     9.6943        18.298       -.20844E-05   -.13662E-03
   3  norm          .10000E-03    2.5596        .87962E-07** at limit **
   4  Prefactor     .10007E-03    14.036        .16132E-05** at limit **
   5  Prefactor     8.5055        17.128       -.23106E-05   -.42628E-03
   6  Prefactor     .10000E-03    2.2028        .27371E-08** at limit **
   7  norm          10.325        10.540       -.74132E-07   -.12361E-03
   8  norm          4.8601        3.1046       -.73153E-07   -.10499E-03
   9  Prefactor     .10000E-03    11.746        .11690E-05** at limit **
  10  norm          1.4663        2.1678       -.11310E-06   -.28407E-03
  11  norm          .15813        3.3880        .10134E-05   -.10030E-02
  12  Prefactor     .10000E-03    19.707        .36582E-05** at limit **
  13  norm          6.6713        5.2239        .68064E-06   -.16643E-03
  14  Prefactor     18.195        28.341       -.25748E-05   -.11052E-04
  15  norm          .10000E-03    9.9479        .39720E-05** at limit **
  16  Prefactor     .10000E-03    10.351       -.51093E-05** at limit **
  17  Prefactor     .10000E-03    3.1921       -.15275E-07** at limit **
  18  Prefactor     9.0750        6.9069       -.13991E-06   -.15195E-04
  19  norm          2.0133        1.7872       -.11202E-06   -.53934E-03
  20  Prefactor     .10000E-03    25.611       -.32025E-05** at limit **
  21  Prefactor     .10000E-03    2.6566       -.10191E-06** at limit **
  22  norm          8.1102        2.6424        .16868E-06   -.45103E-04
  23  Prefactor     7.9711        18.267       -.12021E-05   -.59684E-04
  24  Prefactor     13.024        30.246       -.48864E-05   -.36833E-05
  25  Prefactor     .10000E-03    20.820       -.42858E-05** at limit **
  26  Normalizat    1.0581        .18353        .66429E-06   -.23580E-03
  27  Prefactor     .82141        .16407       -.90853E-07   -.12476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.69431
  norm       = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 8.50551
  Prefactor  = 0.0001
  norm       = 10.3252
  norm       = 4.86006
  Prefactor  = 0.0001
  norm       = 1.46625
  norm       = 0.15813
  Prefactor  = 0.0001
  norm       = 6.67133
  Prefactor  = 18.1949
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.07504
  norm       = 2.01331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.11016
  Prefactor  = 7.97109
  Prefactor  = 13.0239
  Prefactor  = 0.0001
  Normalizat = 1.05812
  Prefactor  = 0.821408
 **********
 **   18 **HESSE 
 **********

 FCN=   5619.555     FROM HESSE     STATUS=OK           494 CALLS     3803 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9537        .12530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6943        18.266        .12873E-03   -1.5085    
   3  norm          .10000E-03    2.6346        .23408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10007E-03    87.763        .44372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5055        15.031        .13748E-03   -1.5125    
   6  Prefactor     .10000E-03    2.2399        .10853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.325        10.514        .12470E-03   -1.5065    
   8  norm          4.8601        3.1063        .10137E-03   -1.5267    
   9  Prefactor     .10000E-03    11.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4663        2.1443        .13041E-03   -1.5466    
  11  norm          .15813        38.317        .25990E-02   -1.5628    
  12  Prefactor     .10000E-03    19.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.6713        5.1938        .14408E-03   -1.5191    
  14  Prefactor     18.195        28.356        .93886E-04   -1.4855    
  15  norm          .10000E-03    9.9477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1962        .13067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.0750        6.9162        .13304E-03   -1.5105    
  19  norm          2.0133        1.7862        .88741E-04   -1.5424    
  20  Prefactor     .10000E-03    25.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6651        .11932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.1102        2.6773        .47026E-04   -1.5138    
  23  Prefactor     7.9711        18.451        .14212E-03   -1.5143    
  24  Prefactor     13.024        29.964        .11099E-03   -1.4986    
  25  Prefactor     .10000E-03    20.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0581        .21114        .23651E-03   -.91108    
  27  Prefactor     .82141        .18813        .24619E-03   -.98944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49961e-08
Minuit parameter uncertainties:
  1  1.89621e-06
  2  18.2763
  3  3.22013e-07
  4  0.00486726
  5  15.0376
  6  1.65082e-06
  7  10.5156
  8  3.10644
  9  1.93976e-07
  10  2.14441
  11  4.92464
  12  5.27302e-06
  13  5.19418
  14  28.3774
  15  3.00425e-05
  16  2.04953e-06
  17  5.30428e-07
  18  6.91685
  19  1.78621
  20  1.38894e-06
  21  1.63488e-07
  22  2.67737
  23  18.4639
  24  29.9986
  25  2.96489e-06
  26  0.211308
  27  0.188279
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.819e+01  2.838e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  8.214e-01  1.883e-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.058e+00  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/767820/likelihoodResults_249177601_249436801_4FGL_J1446.3+3111_daily_bin38.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) = 5619.52742657
delta logL = 0.0271392397344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5619.31729126
delta logL = 0.237274545623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13269       1.0000         .10000E-03   10000.    
     2 'Index     '    6.0793       1.0000          .0000       10.000    
     3 'Normalizat'    1.0076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85718       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.

 FCN=   5619.317     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      266 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13248        2.3284        .63262E-02    .31744E-02
   2  Index         6.0813        3.3166        .13595        .14827E-03
   3  Normalizat    1.0077        .36769E-01    .46262E-01   -.64537E-06
   4  Prefactor     .85714        .34326E-01    .44457E-01   -.18325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.13248
  Index      = 6.08126
  Normalizat = 1.0077
  Prefactor  = 0.857145
 **********
 **   18 **HESSE 
 **********

 FCN=   5619.317     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      301 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13248        7.3206        .28911E-03   -1.5635    
   2  Index         6.0813        8.0247        .70754E-02    .21797    
   3  Normalizat    1.0077        .14407        .24169E-03   -.92773    
   4  Prefactor     .85714        .13129        .24166E-03   -.97655    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54005e-10
Minuit parameter uncertainties:
  1  1.96911
  2  8.18044
  3  0.14413
  4  0.131337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/767820': 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) = 5619.31728857
delta logL = 0.237277238409

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.325e-01  1.969e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  6.081e+00  8.180e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  8.571e-01  1.313e-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.008e+00  1.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 221.591 31.195
Photon Index (Free Index): 6.08 +/- 8.18
Photon Flux (Free Index): 5.24e-08 +/- 5.28e-08
Energy Flux (Free Index): 6.50e-06 +/- 7.11e-06

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/767820/cmap_HighResolution_249177601_249436801_4FGL_J1446.3+3111_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', comment='SUCCESS', energy_flux2='6.50e-06', dlogl='2.37e-01', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-09-10 08:55:49.660352', photon_index_error2='8.18', photon_index2='6.08', ts='0.53', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.42e-08', energy_flux_error2='7.11e-06', EG='1.06', time_epoch_completed='1631289349.66', return_code='0', job_id='767820', GAL2='0.86', EG2='1.01', return_code2='102', photon_flux_error2='5.28e-08', ts2='1.09', photon_index='2.56' WHERE bin_id='38' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 08:55:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 767820: <4FGL_J1446.3+3111_daily_bin38> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin38> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 08:41:33 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:41: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 08:41:35 2021
Terminated at Fri Sep 10 08:55:50 2021
Results reported at Fri Sep 10 08:55:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin38 221.591 31.1955 249177601 249436801 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 :                                   668.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

