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


Performing analysis on: 4FGL_J1446.7+1719_daily_bin308
RA = 221.688, Dec = 17.3237
tmin = 319161601, tmax = 319420801
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='779439', job_status='RUN', time_executed='2021-09-10 09:21:26.200223', time_epoch_executed='1631290886.2' WHERE source_name='4FGL J1446.7+1719' and cadence='daily' and bin_id='308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779439

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779439/ft1_4FGL_J1446.7+1719_daily_bin308.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779439/ft2_4FGL_J1446.7+1719_daily_bin308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779439/ft1_4FGL_J1446.7+1719_daily_bin308.fits outfile=/scratch/kocevski/779439/ft1_filteredMKT_4FGL_J1446.7+1719_daily_bin308.fits ra=221.688 dec=17.3237 rad=12.0 tmin=319161601.0 tmax=319420801.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.46
user 4.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779439/ft2_4FGL_J1446.7+1719_daily_bin308.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/779439/ft1_filteredMKT_4FGL_J1446.7+1719_daily_bin308.fits evtable="EVENTS" outfile="/scratch/kocevski/779439/ft1_filtered_4FGL_J1446.7+1719_daily_bin308.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779439/ft1_filtered_4FGL_J1446.7+1719_daily_bin308.fits" evtable="EVENTS" scfile=/scratch/kocevski/779439/ft2_4FGL_J1446.7+1719_daily_bin308.fits sctable="SC_DATA" outfile=/scratch/kocevski/779439/ltcube_319161601_319420801_4FGL_J1446.7+1719_daily_bin308.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/779439/ft2_4FGL_J1446.7+1719_daily_bin308.fits
.....................!
real 11.78
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779439/ft1_filtered_4FGL_J1446.7+1719_daily_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/779439/ft2_4FGL_J1446.7+1719_daily_bin308.fits sctable="SC_DATA" expcube=/scratch/kocevski/779439/ltcube_319161601_319420801_4FGL_J1446.7+1719_daily_bin308.fits outfile=/scratch/kocevski/779439/expmap_319161601_319420801_4FGL_J1446.7+1719_daily_bin308.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/779439/ltcube_319161601_319420801_4FGL_J1446.7+1719_daily_bin308.fits
.....................!
real 190.37
user 185.00
sys 5.00

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/779439/ft1_filtered_4FGL_J1446.7+1719_daily_bin308.fits scfile=/scratch/kocevski/779439/ft2_4FGL_J1446.7+1719_daily_bin308.fits outfile=/scratch/kocevski/779439/cmap_319161601_319420801_4FGL_J1446.7+1719_daily_bin308.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779439/ft1_filtered_4FGL_J1446.7+1719_daily_bin308.fits scfile=/scratch/kocevski/779439/ft2_4FGL_J1446.7+1719_daily_bin308.fits outfile=/scratch/kocevski/779439/cmap_HighResolution_319161601_319420801_4FGL_J1446.7+1719_daily_bin308.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.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/779439/ft1_filtered_4FGL_J1446.7+1719_daily_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/779439/ft2_4FGL_J1446.7+1719_daily_bin308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779439/Model_4FGL_J1446.7+1719_daily_bin308.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/779439/ft1_filtered_4FGL_J1446.7+1719_daily_bin308.fits.....................!
real 46.90
user 45.55
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.343       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2206       1.0000         .10000E-03   10000.    
     6 'norm      '    .14240E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59028E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    30.204       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .71017       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11610E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3381       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94024       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=   5914.555     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2524 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.049        .38355E-05** at limit **
   2  Prefactor     34.559        37.994       -.31129E-04   -.40661E-04
   3  Prefactor     .10000E-03    7.1668        .44826E-05** at limit **
   4  norm          10.342        3.8959       -.12515E-06    .34929E-04
   5  Prefactor     2.2126        6.5207        .43431E-06   -.61791E-03
   6  norm          .10000E-03    1.6977       -.17780E-06** at limit **
   7  Prefactor     .10004E-03    142.34        .68412E-04** at limit **
   8  norm          30.186        21.793        .24499E-05   -.10009E-02
   9  norm          3.7668        3.4568       -.10103E-06    .88454E-04
  10  Prefactor     .10000E-03    5.0159        .88944E-08** at limit **
  11  Prefactor     .10000E-03    24.321        .22247E-04** at limit **
  12  Prefactor     .10000E-03    6.9950       -.32667E-05** at limit **
  13  Prefactor     .10000E-03    7.0714        .82740E-07** at limit **
  14  Prefactor     .10000E-03    19.363       -.53037E-05** at limit **
  15  Prefactor     .10000E-03    8.4940       -.17831E-05** at limit **
  16  norm          .71009        .25175       -.77624E-07   -.18345E-02
  17  norm          .10000E-03    4.3471        .23129E-07** at limit **
  18  norm          .10000E-03    18.645       -.16738E-04** at limit **
  19  Prefactor     .10000E-03    57.367        .15234E-04** at limit **
  20  Prefactor     .10000E-03    29.574       -.39470E-04** at limit **
  21  Prefactor     .10000E-03    23.269        .25467E-04** at limit **
  22  Normalizat    1.3388        .23498        .33265E-05   -.13089E-03
  23  Prefactor     .93985        .15509        .35254E-06    .80299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.5592
  Prefactor  = 0.000100001
  norm       = 10.3423
  Prefactor  = 2.21258
  norm       = 0.0001
  Prefactor  = 0.000100036
  norm       = 30.1857
  norm       = 3.76678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.710086
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.33885
  Prefactor  = 0.939846
 **********
 **   18 **HESSE 
 **********

 FCN=   5914.555     FROM HESSE     STATUS=OK           362 CALLS     2886 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.559        38.103        .68058E-04   -1.4532    
   3  Prefactor     .10000E-03    7.2330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.342        3.8963        .90247E-04   -1.5065    
   5  Prefactor     2.2126        6.4973        .27595E-03   -1.5410    
   6  norm          .10000E-03    4.7532        .19467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    142.16        .21073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          30.186        21.548        .72903E-04   -1.4609    
   9  norm          3.7668        3.4600        .13326E-03   -1.5320    
  10  Prefactor     .10000E-03    5.0168        .16822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .71009        .25113        .21867E-04   -1.5539    
  17  norm          .10000E-03    4.3667        .15659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    18.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    57.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3388        .28777        .28483E-03   -.82414    
  23  Prefactor     .93985        .18985        .22293E-03   -.94762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.879e-09
Minuit parameter uncertainties:
  1  7.26972e-06
  2  38.1293
  3  0.000152756
  4  3.8964
  5  6.49933
  6  8.53806e-06
  7  0.00451676
  8  21.5536
  9  3.46014
  10  1.6647e-06
  11  0.000135811
  12  8.29689e-06
  13  4.91508e-06
  14  1.63837e-05
  15  2.23713e-05
  16  0.251134
  17  5.18422e-06
  18  2.19106e-06
  19  0.000202737
  20  0.000467186
  21  7.18192e-05
  22  0.288116
  23  0.189986
Done.

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

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  1.665e-06  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:  9.398e-01  1.900e-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.339e+00  2.881e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779439/likelihoodResults_319161601_319420801_4FGL_J1446.7+1719_daily_bin308.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) = 5914.55588969
delta logL = -0.000929731516408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5914.5549599
delta logL = 5.50871845917e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4729       1.0000          .0000       10.000    
     3 'Normalizat'    1.3388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93989       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=   5914.555     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      255 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.487        .17247E-01** at limit **
   2  Index         1.7322        5.8420        .50000       -.56055E-06
   3  Normalizat    1.3389        .10718E-01    .28483E-03    .21247E-03
   4  Prefactor     .93984        .72192E-02    .22293E-03    .28469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73215
  Normalizat = 1.33885
  Prefactor  = 0.939844
 **********
 **   18 **HESSE 
 **********

 FCN=   5914.555     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      282 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    215.38        .21180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7322        5.1494        .50000       -.71229    
   3  Normalizat    1.3389        .30879E-01    .56965E-04   -.82414    
   4  Prefactor     .93984        .20799E-01    .44585E-04   -.94762    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89028e-08
Minuit parameter uncertainties:
  1  0.000281296
  2  808.75
  3  0.0308798
  4  0.0207988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779439': 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) = 5914.55495627
delta logL = 3.67934626411e-06

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  2.813e-04  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  1.732e+00  8.088e+02  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:  9.398e-01  2.080e-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.339e+00  3.088e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/779439/cmap_HighResolution_319161601_319420801_4FGL_J1446.7+1719_daily_bin308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-10 09:31:08.892263', job_id='779439', GAL2='0.94', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1631291468.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='308' AND source_name='4FGL J1446.7+1719' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:31:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 779439: <4FGL_J1446.7+1719_daily_bin308> in cluster <slac> Done

Job <4FGL_J1446.7+1719_daily_bin308> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 09:21:07 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:21:08 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:21:08 2021
Terminated at Fri Sep 10 09:31:09 2021
Results reported at Fri Sep 10 09:31:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.7+1719_daily_bin308 221.688 17.3237 319161601 319420801 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 :                                   582.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            602 sec.

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

