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


Performing analysis on: 4FGL_J1446.7+1719_daily_bin1021
RA = 221.688, Dec = 17.3237
tmin = 503971201, tmax = 504230401
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='782362', job_status='RUN', time_executed='2021-09-10 09:35:17.704218', time_epoch_executed='1631291717.7' WHERE source_name='4FGL J1446.7+1719' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782362/ft1_4FGL_J1446.7+1719_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782362/ft2_4FGL_J1446.7+1719_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782362/ft1_4FGL_J1446.7+1719_daily_bin1021.fits outfile=/scratch/kocevski/782362/ft1_filteredMKT_4FGL_J1446.7+1719_daily_bin1021.fits ra=221.688 dec=17.3237 rad=12.0 tmin=503971201.0 tmax=504230401.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.03
user 3.79
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782362/ft1_filtered_4FGL_J1446.7+1719_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/782362/ft2_4FGL_J1446.7+1719_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/782362/ltcube_503971201_504230401_4FGL_J1446.7+1719_daily_bin1021.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/782362/ft2_4FGL_J1446.7+1719_daily_bin1021.fits
.....................!
real 11.80
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782362/ft1_filtered_4FGL_J1446.7+1719_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/782362/ft2_4FGL_J1446.7+1719_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/782362/ltcube_503971201_504230401_4FGL_J1446.7+1719_daily_bin1021.fits outfile=/scratch/kocevski/782362/expmap_503971201_504230401_4FGL_J1446.7+1719_daily_bin1021.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/782362/ltcube_503971201_504230401_4FGL_J1446.7+1719_daily_bin1021.fits
.....................!
real 191.52
user 187.18
sys 3.96

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/782362/ft1_filtered_4FGL_J1446.7+1719_daily_bin1021.fits scfile=/scratch/kocevski/782362/ft2_4FGL_J1446.7+1719_daily_bin1021.fits outfile=/scratch/kocevski/782362/cmap_503971201_504230401_4FGL_J1446.7+1719_daily_bin1021.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782362/ft1_filtered_4FGL_J1446.7+1719_daily_bin1021.fits scfile=/scratch/kocevski/782362/ft2_4FGL_J1446.7+1719_daily_bin1021.fits outfile=/scratch/kocevski/782362/cmap_HighResolution_503971201_504230401_4FGL_J1446.7+1719_daily_bin1021.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/782362/ft1_filtered_4FGL_J1446.7+1719_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/782362/ft2_4FGL_J1446.7+1719_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/782362/Model_4FGL_J1446.7+1719_daily_bin1021.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/782362/ft1_filtered_4FGL_J1446.7+1719_daily_bin1021.fits.....................!
real 53.21
user 51.83
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.845       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7294       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7672       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8344       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.0152       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.479       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3639       1.0000         .10000E-03   10000.    
    16 'norm      '    .91027       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5117       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75475       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=   7057.392     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2451 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.846        23.763        .53988E-06   -.48918E-04
   2  Prefactor     7.7300        13.719       -.16637E-05   -.60314E-03
   3  Prefactor     .10000E-03    2.0258        .14825E-07** at limit **
   4  norm          2.7673        2.3433       -.46408E-07   -.44759E-04
   5  Prefactor     7.8353        5.5794       -.81920E-06   -.16708E-02
   6  norm          .10000E-03    1.1095        .31426E-07** at limit **
   7  Prefactor     .10000E-03    13.572        .14481E-05** at limit **
   8  norm          .10000E-03    21.765       -.10964E-05** at limit **
   9  norm          8.0155        5.8836       -.29089E-06   -.31140E-04
  10  Prefactor     .10000E-03    12.936       -.23109E-05** at limit **
  11  Prefactor     .10000E-03    35.276       -.14013E-05** at limit **
  12  Prefactor     .10000E-03    7.6280        .49763E-07** at limit **
  13  Prefactor     .10000E-03    25.326        .51711E-05** at limit **
  14  Prefactor     20.472        45.639       -.10391E-04    .13315E-03
  15  Prefactor     4.3638        6.0649       -.12570E-06   -.62497E-04
  16  norm          .91023        .22276        .54913E-08   -.29061E-04
  17  norm          .10000E-03    1.6524        .26524E-07** at limit **
  18  norm          .10000E-03    18.936       -.39606E-05** at limit **
  19  Prefactor     .10000E-03    35.555       -.62272E-06** at limit **
  20  Prefactor     .10000E-03    4.7581       -.57486E-07** at limit **
  21  Prefactor     .10000E-03    14.387        .25953E-05** at limit **
  22  Normalizat    1.5117        .21216        .93453E-06   -.54374E-04
  23  Prefactor     .75473        .13627        .30753E-06   -.29884E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8463
  Prefactor  = 7.72998
  Prefactor  = 0.0001
  norm       = 2.76726
  Prefactor  = 7.83529
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.01546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.4721
  Prefactor  = 4.36383
  norm       = 0.91023
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51165
  Prefactor  = 0.754732
 **********
 **   18 **HESSE 
 **********

 FCN=   7057.392     FROM HESSE     STATUS=OK           364 CALLS     2815 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.846        23.893        .83805E-04   -1.4752    
   2  Prefactor     7.7300        14.500        .72118E-03   -1.5152    
   3  Prefactor     .10000E-03    2.0295        .11676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7673        2.3439        .11471E-03   -1.5375    
   5  Prefactor     7.8353        6.0351        .71629E-03   -1.5148    
   6  norm          .10000E-03    1.1168        .86381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    22.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.0155        5.8922        .14162E-03   -1.5142    
  10  Prefactor     .10000E-03    12.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.472        44.119        .88508E-04   -1.4803    
  15  Prefactor     4.3638        6.0613        .19281E-03   -1.5290    
  16  norm          .91023        .22275        .18776E-04   -1.5517    
  17  norm          .10000E-03    1.6529        .10546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    18.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7734        .17897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5117        .25740        .26685E-03   -.77451    
  23  Prefactor     .75473        .16431        .23660E-03   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48743e-09
Minuit parameter uncertainties:
  1  23.9034
  2  14.5069
  3  1.87677e-06
  4  2.34398
  5  6.03561
  6  6.47931e-07
  7  7.85717e-05
  8  4.50788e-05
  9  5.89265
  10  0.000123271
  11  7.91487e-05
  12  1.62833e-05
  13  0.000255764
  14  44.1898
  15  6.06218
  16  0.222751
  17  7.77974e-07
  18  0.000239688
  19  3.88525e-05
  20  1.52377e-06
  21  0.000140114
  22  0.257628
  23  0.16442
Done.

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

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  1.233e-04  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:  7.547e-01  1.644e-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.512e+00  2.576e-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: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782362/likelihoodResults_503971201_504230401_4FGL_J1446.7+1719_daily_bin1021.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) = 7057.3924084
delta logL = -0.000371146408725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7057.39203741
delta logL = -1.50726009451e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4828       1.0000          .0000       10.000    
     3 'Normalizat'    1.5116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75478       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=   7057.392     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10201E-03    300.86        .18142E-02** at limit **
   2  Index         2.3849        8.7259        .50000        .69225E-05
   3  Normalizat    1.5117        .25104E-01    .26684E-03    .13020E-03
   4  Prefactor     .75473        .16469E-01    .23660E-03    .27485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102013
  Index      = 2.38492
  Normalizat = 1.51166
  Prefactor  = 0.75473
 **********
 **   18 **HESSE 
 **********

 FCN=   7057.392     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10201E-03    1137.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3849        5.5093        .50000       -.55038    
   3  Normalizat    1.5117        .54188E-01    .53369E-04   -.77451    
   4  Prefactor     .75473        .35547E-01    .94639E-05   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.32445e-08
Minuit parameter uncertainties:
  1  0.097644
  2  2098.23
  3  0.0541905
  4  0.035548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782362': 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) = 7057.39203712
delta logL = 1.40984411701e-07

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  1.020e-04  9.764e-02  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.385e+00  2.098e+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:  7.547e-01  3.555e-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.512e+00  5.419e-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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/782362/cmap_HighResolution_503971201_504230401_4FGL_J1446.7+1719_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-10 09:45:43.072832', job_id='782362', GAL2='0.75', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1631292343.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1021' AND source_name='4FGL J1446.7+1719' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:45:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 782362: <4FGL_J1446.7+1719_daily_bin1021> in cluster <slac> Done

Job <4FGL_J1446.7+1719_daily_bin1021> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 09:31:10 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:31:11 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:31:11 2021
Terminated at Fri Sep 10 09:45:43 2021
Results reported at Fri Sep 10 09:45:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.7+1719_daily_bin1021 221.688 17.3237 503971201 504230401 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 :                                   623.37 sec.
    Max Memory :                                 1027 MB
    Average Memory :                             265.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

