/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 6 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1446.7+1719_daily_bin158
RA = 221.688, Dec = 17.3237
tmin = 280281601, tmax = 280540801
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='778138', job_status='RUN', time_executed='2021-09-10 09:16:29.845559', time_epoch_executed='1631290589.85' WHERE source_name='4FGL J1446.7+1719' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778138/ft1_4FGL_J1446.7+1719_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778138/ft1_4FGL_J1446.7+1719_daily_bin158.fits outfile=/scratch/kocevski/778138/ft1_filteredMKT_4FGL_J1446.7+1719_daily_bin158.fits ra=221.688 dec=17.3237 rad=12.0 tmin=280281601.0 tmax=280540801.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.26
user 4.05
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.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/778138/ft1_filteredMKT_4FGL_J1446.7+1719_daily_bin158.fits evtable="EVENTS" outfile="/scratch/kocevski/778138/ft1_filtered_4FGL_J1446.7+1719_daily_bin158.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.48
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778138/ft1_filtered_4FGL_J1446.7+1719_daily_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/778138/ltcube_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.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/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits
.....................!
real 11.62
user 11.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778138/ft1_filtered_4FGL_J1446.7+1719_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/778138/ltcube_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.fits outfile=/scratch/kocevski/778138/expmap_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.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/778138/ltcube_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.fits
.....................!
real 189.69
user 185.01
sys 4.36

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J1446.7+1719 @ 221.688 17.3237

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/778138/ft1_filtered_4FGL_J1446.7+1719_daily_bin158.fits scfile=/scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits outfile=/scratch/kocevski/778138/cmap_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.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.688 yref=17.3237 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778138/ft1_filtered_4FGL_J1446.7+1719_daily_bin158.fits scfile=/scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits outfile=/scratch/kocevski/778138/cmap_HighResolution_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.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.688 yref=17.3237 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/778138/ft1_filtered_4FGL_J1446.7+1719_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/778138/Model_4FGL_J1446.7+1719_daily_bin158.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/778138/ft1_filtered_4FGL_J1446.7+1719_daily_bin158.fits.....................!
real 56.55
user 55.25
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/778138/ft1_filtered_4FGL_J1446.7+1719_daily_bin158.fits', '/scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits', expMap='/scratch/kocevski/778138/expmap_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.fits', expCube='/scratch/kocevski/778138/ltcube_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/778138/Model_4FGL_J1446.7+1719_daily_bin158.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1446.7+1719'

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  3.187e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  9.206e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/778138/ft1_filtered_4FGL_J1446.7+1719_daily_bin158.fits
Spacecraft file(s): /scratch/kocevski/778138/ft2_4FGL_J1446.7+1719_daily_bin158.fits
Exposure map: /scratch/kocevski/778138/expmap_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.fits
Exposure cube: /scratch/kocevski/778138/ltcube_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/778138/Model_4FGL_J1446.7+1719_daily_bin158.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) = 7689.09003259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.677       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.107       1.0000         .10000E-03   10000.    
     4 'norm      '    5.4196       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3983       1.0000         .10000E-03   10000.    
     6 'norm      '    .60741       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.570       1.0000         .10000E-03   10000.    
     8 'norm      '    .19605E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.4322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.810       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.015       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.427       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4480       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    30.719       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.729       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4253       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+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=   7689.079     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     3318 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.755        13.962        .12216E-03   -.82641E-04
   2  Prefactor     14.665        36.442        .10455E-03   -.17398E-04
   3  Prefactor     12.110        10.307        .11513E-03   -.98848E-04
   4  norm          5.4197        2.5295        .92523E-04   -.40426E-04
   5  Prefactor     3.3987        6.2678        .21947E-03   -.27455E-04
   6  norm          .60676        2.6771        .26826E-03    .24639E-03
   7  Prefactor     39.516        44.891        .63719E-04    .54275E-04
   8  norm          .10000E-03    28.380        .99281E-01** at limit **
   9  norm          5.4323        3.7467        .13667E-03    .23292E-05
  10  Prefactor     7.3374        20.281        .14805E-03   -.18814E-04
  11  Prefactor     22.812        22.300        .83868E-04    .10302E-04
  12  Prefactor     21.705        15.447        .85979E-04    .12202E-03
  13  Prefactor     40.014        28.108        .63365E-04   -.53824E-05
  14  Prefactor     .10000E-03    20.234        .18142E-02** at limit **
  15  Prefactor     21.426        9.5997        .86529E-04   -.17474E-04
  16  norm          1.4480        .28796        .19799E-04   -.96753E-03
  17  norm          .10000E-03    3.2237        .15360E-02** at limit **
  18  norm          30.727        32.662        .72290E-04    .27647E-04
  19  Prefactor     38.743        39.663        .64405E-04    .45895E-05
  20  Prefactor     .10000E-03    3.6185        .16267E-02** at limit **
  21  Prefactor     .10000E-03    9.4031        .18142E-02** at limit **
  22  Normalizat    1.4253        .27303        .28942E-03   -.32225E-03
  23  Prefactor     .84691        .17644        .24552E-03   -.14216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7547
  Prefactor  = 14.6654
  Prefactor  = 12.1096
  norm       = 5.41971
  Prefactor  = 3.39872
  norm       = 0.606762
  Prefactor  = 39.5163
  norm       = 0.0001
  norm       = 5.43234
  Prefactor  = 7.33736
  Prefactor  = 22.8122
  Prefactor  = 21.705
  Prefactor  = 40.0143
  Prefactor  = 0.0001
  Prefactor  = 21.4258
  norm       = 1.44803
  norm       = 0.0001
  norm       = 30.727
  Prefactor  = 38.7433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42526
  Prefactor  = 0.846911
 **********
 **   18 **HESSE 
 **********

 FCN=   7689.079     FROM HESSE     STATUS=OK           356 CALLS     3674 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.755        13.962        .48864E-05   -1.5052    
   2  Prefactor     14.665        36.445        .41820E-05   -1.4942    
   3  Prefactor     12.110        10.304        .46051E-05   -1.5012    
   4  norm          5.4197        2.5295        .37009E-05   -1.5242    
   5  Prefactor     3.3987        6.2656        .87786E-05   -1.5339    
   6  norm          .60676        2.6753        .10731E-04   -1.5552    
   7  Prefactor     39.516        44.520        .12744E-04   -1.4450    
   8  norm          .10000E-03    26.792        .10234       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.4323        3.7467        .54667E-05   -1.5242    
  10  Prefactor     7.3374        20.280        .59219E-05   -1.5166    
  11  Prefactor     22.812        22.301        .33547E-05   -1.4752    
  12  Prefactor     21.705        15.446        .17196E-04   -1.4776    
  13  Prefactor     40.014        28.109        .25346E-05   -1.4442    
  14  Prefactor     .10000E-03    20.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.426        9.5999        .34612E-05   -1.4782    
  16  norm          1.4480        .28796        .79196E-06   -1.5467    
  17  norm          .10000E-03    3.2239        .30720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          30.727        32.662        .14458E-04   -1.4599    
  19  Prefactor     38.743        39.669        .25762E-05   -1.4462    
  20  Prefactor     .10000E-03    3.6188        .32535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4253        .27329        .57883E-04   -.79901    
  23  Prefactor     .84691        .17664        .98206E-05   -.98022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42251e-10
Minuit parameter uncertainties:
  1  13.9661
  2  36.5007
  3  10.3058
  4  2.52951
  5  6.26683
  6  2.54813
  7  44.5572
  8  3.87606e-05
  9  3.74684
  10  20.2989
  11  22.3088
  12  15.4493
  13  28.1185
  14  0.000103721
  15  9.60062
  16  0.287957
  17  1.19297e-05
  18  32.681
  19  39.696
  20  1.48012e-05
  21  3.69385e-05
  22  0.273575
  23  0.176757
Done.

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

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  7.337e+00  2.030e+01  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.497e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  9.206e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  8.469e-01  1.768e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  1.425e+00  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 221.688 17.324
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/778138/likelihoodResults_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.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) = 7689.03910838
delta logL = 0.039679234892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7689.02334603
delta logL = 0.0554415850675

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.639       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0745       1.0000          .0000       10.000    
     3 'Normalizat'    1.4311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+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=   7689.023     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      271 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.621        25.598        .11742E-03   -.27109E-05
   2  Index         2.0736        1.0972        .12122E-01   -.11545E-05
   3  Normalizat    1.4312        .25906        .28891E-03    .51824E-04
   4  Prefactor     .84288        .17587        .24602E-03   -.58734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6212
  Index      = 2.07359
  Normalizat = 1.43123
  Prefactor  = 0.842883
 **********
 **   18 **HESSE 
 **********

 FCN=   7689.023     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.621        25.410        .46970E-05   -1.5026    
   2  Index         2.0736        1.0896        .48488E-03   -.62523    
   3  Normalizat    1.4312        .25933        .11557E-04   -.79730    
   4  Prefactor     .84288        .17605        .98408E-05   -.98166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47245e-11
Minuit parameter uncertainties:
  1  25.434
  2  1.1032
  3  0.259566
  4  0.176173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778138': 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) = 7689.02334517
delta logL = 0.0554424400088

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  1.162e+01  2.543e+01  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.074e+00  1.103e+00  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  9.206e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  8.429e-01  1.762e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  1.431e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 221.688 17.324

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/778138/cmap_HighResolution_280281601_280540801_4FGL_J1446.7+1719_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-10 09:28:52.750510', job_id='778138', GAL2='0.84', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631291332.75', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='5.54e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='158' AND source_name='4FGL J1446.7+1719' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:28:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 778138: <4FGL_J1446.7+1719_daily_bin158> in cluster <slac> Done

Job <4FGL_J1446.7+1719_daily_bin158> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 09:16:13 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:16:15 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:16:15 2021
Terminated at Fri Sep 10 09:28:53 2021
Results reported at Fri Sep 10 09:28:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.7+1719_daily_bin158 221.688 17.3237 280281601 280540801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1446.7+1719 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   736.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

