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


Performing analysis on: 4FGL_J1446.7+1719_daily_bin1368
RA = 221.688, Dec = 17.3237
tmin = 593913601, tmax = 594172801
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='783976', job_status='RUN', time_executed='2021-09-10 09:36:19.974062', time_epoch_executed='1631291779.97' WHERE source_name='4FGL J1446.7+1719' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783976/ft1_4FGL_J1446.7+1719_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783976/ft1_4FGL_J1446.7+1719_daily_bin1368.fits outfile=/scratch/kocevski/783976/ft1_filteredMKT_4FGL_J1446.7+1719_daily_bin1368.fits ra=221.688 dec=17.3237 rad=12.0 tmin=593913601.0 tmax=594172801.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.58
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.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/783976/ft1_filteredMKT_4FGL_J1446.7+1719_daily_bin1368.fits evtable="EVENTS" outfile="/scratch/kocevski/783976/ft1_filtered_4FGL_J1446.7+1719_daily_bin1368.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783976/ft1_filtered_4FGL_J1446.7+1719_daily_bin1368.fits" evtable="EVENTS" scfile=/scratch/kocevski/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.fits sctable="SC_DATA" outfile=/scratch/kocevski/783976/ltcube_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.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/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.fits
.....................!
real 11.96
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783976/ft1_filtered_4FGL_J1446.7+1719_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/783976/ltcube_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.fits outfile=/scratch/kocevski/783976/expmap_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.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/783976/ltcube_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.fits
.....................!
real 190.60
user 185.03
sys 5.14

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/783976/ft1_filtered_4FGL_J1446.7+1719_daily_bin1368.fits scfile=/scratch/kocevski/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.fits outfile=/scratch/kocevski/783976/cmap_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/783976/ft1_filtered_4FGL_J1446.7+1719_daily_bin1368.fits scfile=/scratch/kocevski/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.fits outfile=/scratch/kocevski/783976/cmap_HighResolution_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/783976/ft1_filtered_4FGL_J1446.7+1719_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/783976/Model_4FGL_J1446.7+1719_daily_bin1368.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/783976/ft1_filtered_4FGL_J1446.7+1719_daily_bin1368.fits.....................!
real 54.73
user 53.36
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/783976/ft1_filtered_4FGL_J1446.7+1719_daily_bin1368.fits', '/scratch/kocevski/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.fits', expMap='/scratch/kocevski/783976/expmap_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.fits', expCube='/scratch/kocevski/783976/ltcube_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/783976/Model_4FGL_J1446.7+1719_daily_bin1368.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/783976/ft1_filtered_4FGL_J1446.7+1719_daily_bin1368.fits
Spacecraft file(s): /scratch/kocevski/783976/ft2_4FGL_J1446.7+1719_daily_bin1368.fits
Exposure map: /scratch/kocevski/783976/expmap_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.fits
Exposure cube: /scratch/kocevski/783976/ltcube_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/783976/Model_4FGL_J1446.7+1719_daily_bin1368.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) = 7286.35803201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    284.92       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27046E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8612       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.945       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11870E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5672       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.753       1.0000         .10000E-03   10000.    
    16 'norm      '    .29645       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .77934E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1018       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0388       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.

 FCN=   7286.309     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2252 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2898       -.16637E-06** at limit **
   2  Prefactor     284.87        53.431       -.51409E-06   -.35341E-03
   3  Prefactor     .10003E-03    9.9314        .66685E-05** at limit **
   4  norm          8.8615        3.2340        .28932E-07    .28272E-04
   5  Prefactor     .10000E-03    6.5112        .79719E-06** at limit **
   6  norm          4.5450        3.0964        .47868E-07    .25200E-04
   7  Prefactor     40.947        29.513        .38709E-06   -.82322E-05
   8  norm          .10000E-03    7.2862       -.22477E-06** at limit **
   9  norm          .10000E-03    5.3376        .59452E-05** at limit **
  10  Prefactor     .10000E-03    10.849       -.31242E-06** at limit **
  11  Prefactor     4.5672        31.283        .14421E-05    .47518E-04
  12  Prefactor     7.9125        12.632        .33838E-08    .23028E-04
  13  Prefactor     .10000E-03    11.671        .18991E-06** at limit **
  14  Prefactor     .10000E-03    16.181        .38815E-06** at limit **
  15  Prefactor     17.755        10.262        .14608E-06    .11786E-03
  16  norm          .29647        .15342       -.13824E-07   -.45713E-03
  17  norm          .10000E-03    2.6778       -.17138E-07** at limit **
  18  norm          .10000E-03    23.189        .46270E-06** at limit **
  19  Prefactor     15.162        28.234       -.15159E-05   -.39162E-05
  20  Prefactor     .10506E-03    7.0168       -.13872E-05** at limit **
  21  Prefactor     .10000E-03    33.580       -.27014E-06** at limit **
  22  Normalizat    1.1015        .20951        .18540E-06   -.13823E-03
  23  Prefactor     1.0390        .14205        .27055E-06   -.14323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 284.871
  Prefactor  = 0.000100025
  norm       = 8.86154
  Prefactor  = 0.0001
  norm       = 4.54504
  Prefactor  = 40.947
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.56721
  Prefactor  = 7.91254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7548
  norm       = 0.296467
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1617
  Prefactor  = 0.000105055
  Prefactor  = 0.0001
  Normalizat = 1.10153
  Prefactor  = 1.03899
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.309     FROM HESSE     STATUS=OK           376 CALLS     2628 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     284.87        53.446        .12021E-03   -1.2316    
   3  Prefactor     .10003E-03    20.809        .35886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.8615        3.2353        .89747E-04   -1.5113    
   5  Prefactor     .10000E-03    6.5606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5450        3.0937        .11889E-03   -1.5282    
   7  Prefactor     40.947        29.498        .62644E-04   -1.4427    
   8  norm          .10000E-03    7.2931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.6104        .26815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5672        31.360        .18836E-03   -1.5281    
  12  Prefactor     7.9125        12.625        .14254E-03   -1.5145    
  13  Prefactor     .10000E-03    11.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.755        10.276        .95057E-04   -1.4865    
  16  norm          .29647        .15226        .23115E-04   -1.5599    
  17  norm          .10000E-03    2.6858        .13641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    23.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.162        28.196        .10285E-03   -1.4929    
  20  Prefactor     .10506E-03    10.211        .68609E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1015        .24728        .30810E-03   -.89703    
  23  Prefactor     1.0390        .16830        .21736E-03   -.91441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97009e-09
Minuit parameter uncertainties:
  1  1.02147e-05
  2  53.4547
  3  0.00144414
  4  3.23537
  5  6.75342e-05
  6  3.09377
  7  29.5081
  8  6.39915e-05
  9  0.000292413
  10  2.63605e-05
  11  23.9531
  12  12.629
  13  8.29682e-06
  14  1.58925e-06
  15  10.277
  16  0.152262
  17  3.43065e-06
  18  1.18497e-05
  19  28.2209
  20  0.0143716
  21  1.47549e-05
  22  0.247535
  23  0.168382
Done.

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

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  2.636e-05  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:  1.039e+00  1.684e-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.102e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 221.688 17.324
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/783976/likelihoodResults_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.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): 102
logL (Free Index) = 7286.30932222
delta logL = -0.00043820279825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7286.30888399
delta logL = 3.01342879538e-08

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 'Index     '    2.4844       1.0000          .0000       10.000    
     3 'Normalizat'    1.1015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0390       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7286.309     FROM MIGRAD    STATUS=FAILED        90 CALLS      247 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10198E-03    296.59        .18142E-02** at limit **
   2  Index         2.3749        5.7238        .50000        .70325E-05
   3  Normalizat    1.1015        .26984E-01    .30810E-03   -.29748E-03
   4  Prefactor     1.0390        .18661E-01    .21736E-03   -.24739E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7286.309     FROM SIMPLEX   STATUS=UNCHANGED    138 CALLS      385 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10198E-03    296.59        .60233E-03** at limit **
   2  Index         2.3749        5.7238        .68401E-04    .70325E-05
   3  Normalizat    1.1015        .26984E-01    .99867E-06   -.29748E-03
   4  Prefactor     1.0390        .18661E-01    .73868E-06   -.24739E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7286.309     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      429 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    236.15        .36285E-02** at limit **
   2  Index         2.1214        8.2025        .50000        .52592E-07
   3  Normalizat    1.1015        .23307E-01    .12324E-04    .75514E-03
   4  Prefactor     1.0390        .16118E-01    .86946E-05    .12754E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12138
  Normalizat = 1.10153
  Prefactor  = 1.03899
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.309     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      458 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1020.1        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1214        5.2675        .50000       -.61349    
   3  Normalizat    1.1015        .53887E-01    .24648E-05   -.89703    
   4  Prefactor     1.0390        .37266E-01    .17389E-05   -.91441    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.89087e-10
Minuit parameter uncertainties:
  1  0.000207417
  2  2139.29
  3  0.0538898
  4  0.0372672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783976': 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) = 7286.30888357
delta logL = 4.52336280432e-07

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  2.074e-04  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.121e+00  2.139e+03  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:  1.039e+00  3.727e-02  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.102e+00  5.389e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/783976/cmap_HighResolution_593913601_594172801_4FGL_J1446.7+1719_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-10 09:46:55.210236', job_id='783976', GAL2='1.04', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631292415.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1368' AND source_name='4FGL J1446.7+1719' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 783976: <4FGL_J1446.7+1719_daily_bin1368> in cluster <slac> Done

Job <4FGL_J1446.7+1719_daily_bin1368> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 09:36:08 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:36:10 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:36:10 2021
Terminated at Fri Sep 10 09:46:57 2021
Results reported at Fri Sep 10 09:46:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.7+1719_daily_bin1368 221.688 17.3237 593913601 594172801 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            649 sec.

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

