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


Performing analysis on: 4FGL_J1446.7+1719_daily_bin775
RA = 221.688, Dec = 17.3237
tmin = 440208001, tmax = 440467201
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='781212', job_status='RUN', time_executed='2021-09-10 09:26:45.551024', time_epoch_executed='1631291205.55' WHERE source_name='4FGL J1446.7+1719' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781212/ft1_4FGL_J1446.7+1719_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781212/ft2_4FGL_J1446.7+1719_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781212/ft1_4FGL_J1446.7+1719_daily_bin775.fits outfile=/scratch/kocevski/781212/ft1_filteredMKT_4FGL_J1446.7+1719_daily_bin775.fits ra=221.688 dec=17.3237 rad=12.0 tmin=440208001.0 tmax=440467201.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.42
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781212/ft2_4FGL_J1446.7+1719_daily_bin775.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/781212/ft1_filteredMKT_4FGL_J1446.7+1719_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/781212/ft1_filtered_4FGL_J1446.7+1719_daily_bin775.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781212/ft1_filtered_4FGL_J1446.7+1719_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/781212/ft2_4FGL_J1446.7+1719_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/781212/ltcube_440208001_440467201_4FGL_J1446.7+1719_daily_bin775.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/781212/ft2_4FGL_J1446.7+1719_daily_bin775.fits
.....................!
real 11.90
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781212/ft1_filtered_4FGL_J1446.7+1719_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/781212/ft2_4FGL_J1446.7+1719_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/781212/ltcube_440208001_440467201_4FGL_J1446.7+1719_daily_bin775.fits outfile=/scratch/kocevski/781212/expmap_440208001_440467201_4FGL_J1446.7+1719_daily_bin775.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/781212/ltcube_440208001_440467201_4FGL_J1446.7+1719_daily_bin775.fits
.....................!
real 189.53
user 184.16
sys 5.02

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/781212/ft1_filtered_4FGL_J1446.7+1719_daily_bin775.fits scfile=/scratch/kocevski/781212/ft2_4FGL_J1446.7+1719_daily_bin775.fits outfile=/scratch/kocevski/781212/cmap_440208001_440467201_4FGL_J1446.7+1719_daily_bin775.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/781212/ft1_filtered_4FGL_J1446.7+1719_daily_bin775.fits scfile=/scratch/kocevski/781212/ft2_4FGL_J1446.7+1719_daily_bin775.fits outfile=/scratch/kocevski/781212/cmap_HighResolution_440208001_440467201_4FGL_J1446.7+1719_daily_bin775.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/781212/ft1_filtered_4FGL_J1446.7+1719_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/781212/ft2_4FGL_J1446.7+1719_daily_bin775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/781212/Model_4FGL_J1446.7+1719_daily_bin775.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/781212/ft1_filtered_4FGL_J1446.7+1719_daily_bin775.fits.....................!
real 62.14
user 60.62
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.006       1.0000         .10000E-03   10000.    
     6 'norm      '    7.7078       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7536       1.0000         .10000E-03   10000.    
     8 'norm      '    .20450E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    25.478       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.599       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12935E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12057E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5212       1.0000         .10000E-03   10000.    
    16 'norm      '    .38982       1.0000         .10000E-03   10000.    
    17 'norm      '    8.7434       1.0000         .10000E-03   10000.    
    18 'norm      '    .10417E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11911E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    68.730       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2681       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78906       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=   8543.508     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2550 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3979       -.31660E-06** at limit **
   2  Prefactor     .10000E-03    6.9349       -.12750E-06** at limit **
   3  Prefactor     .10000E-03    1.6051       -.89671E-07** at limit **
   4  norm          10.051        3.3200       -.64329E-07    .12938E-03
   5  Prefactor     10.006        5.9254       -.84867E-07    .26541E-03
   6  norm          7.7072        3.2262       -.83614E-07    .28406E-03
   7  Prefactor     4.7467        28.224        .28025E-05    .71781E-04
   8  norm          .10025E-03    20.478       -.18532E-04** at limit **
   9  norm          25.480        7.0178       -.15061E-06    .15754E-03
  10  Prefactor     28.612        21.156       -.86538E-07    .66246E-04
  11  Prefactor     .10002E-03    71.563        .39671E-04** at limit **
  12  Prefactor     .10000E-03    2.9058       -.54728E-07** at limit **
  13  Prefactor     21.374        19.199        .31692E-06    .49367E-04
  14  Prefactor     .10000E-03    26.935        .51140E-06** at limit **
  15  Prefactor     8.5239        7.8232       -.15989E-06    .16337E-03
  16  norm          .38982        .15721        .47839E-07    .60795E-02
  17  norm          8.7432        7.2805       -.26731E-07    .19778E-03
  18  norm          .10000E-03    11.930        .86618E-07** at limit **
  19  Prefactor     .10000E-03    18.853       -.51972E-06** at limit **
  20  Prefactor     .10000E-03    2.3993       -.64928E-07** at limit **
  21  Prefactor     68.758        39.179       -.36733E-05    .14933E-03
  22  Normalizat    1.2681        .19154        .12122E-05    .51905E-03
  23  Prefactor     .78904        .12536        .95544E-06    .76432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0506
  Prefactor  = 10.0062
  norm       = 7.70716
  Prefactor  = 4.74668
  norm       = 0.000100247
  norm       = 25.4799
  Prefactor  = 28.612
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 21.3743
  Prefactor  = 0.000100001
  Prefactor  = 8.52389
  norm       = 0.389824
  norm       = 8.74316
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.7581
  Normalizat = 1.26815
  Prefactor  = 0.789041
 **********
 **   18 **HESSE 
 **********

 FCN=   8543.508     FROM HESSE     STATUS=OK           372 CALLS     2922 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6080        .11436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.051        3.3200        .93517E-04   -1.5074    
   5  Prefactor     10.006        5.9343        .12667E-03   -1.5075    
   6  norm          7.7072        3.2257        .10250E-03   -1.5153    
   7  Prefactor     4.7467        29.360        .18454E-03   -1.5272    
   8  norm          .10025E-03    94.221        .47379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.480        7.0186        .79362E-04   -1.4698    
  10  Prefactor     28.612        21.151        .74915E-04   -1.4638    
  11  Prefactor     .10002E-03    79.235        .59067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9077        .15388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.374        19.191        .86651E-04   -1.4783    
  14  Prefactor     .10000E-03    27.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.5239        7.8190        .13732E-03   -1.5124    
  16  norm          .38982        .15554        .22166E-04   -1.5583    
  17  norm          8.7432        7.2881        .13556E-03   -1.5117    
  18  norm          .10000E-03    11.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4020        .13983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     68.758        39.111        .48417E-04   -1.4048    
  22  Normalizat    1.2681        .22907        .28234E-03   -.84522    
  23  Prefactor     .78904        .15062        .23196E-03   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36649e-09
Minuit parameter uncertainties:
  1  9.02891e-05
  2  3.81384e-05
  3  1.13122e-05
  4  3.3201
  5  5.93465
  6  3.22579
  7  23.6275
  8  0.00966559
  9  7.01881
  10  21.1566
  11  0.00265826
  12  1.21732e-05
  13  19.1969
  14  0.000312074
  15  7.81995
  16  0.155535
  17  7.2888
  18  7.78566e-06
  19  1.52109e-05
  20  1.03571e-05
  21  39.1253
  22  0.22925
  23  0.150701
Done.

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

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  2.861e+01  2.116e+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:  7.890e-01  1.507e-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.268e+00  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.12
Ra Dec: 221.688 17.324
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 4.89e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/781212/likelihoodResults_440208001_440467201_4FGL_J1446.7+1719_daily_bin775.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) = 8543.47532955
delta logL = 0.0323928412927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8543.4724639
delta logL = 0.035258494654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.562       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3445       1.0000          .0000       10.000    
     3 'Normalizat'    1.2739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78631       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=   8543.472     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      303 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.562        27.612        .70221E-04   -.65731E-04
   2  Index         2.3445        .57302        .87074E-02    .31267E-03
   3  Normalizat    1.2740        .22374        .28181E-03    .11861E-04
   4  Prefactor     .78626        .14896        .23233E-03    .20650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.5618
  Index      = 2.34448
  Normalizat = 1.274
  Prefactor  = 0.786258
 **********
 **   18 **HESSE 
 **********

 FCN=   8543.472     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.562        26.961        .28088E-05   -1.4566    
   2  Index         2.3445        .55944        .17415E-02   -.55990    
   3  Normalizat    1.2740        .22390        .11272E-04   -.84346    
   4  Prefactor     .78626        .14907        .92932E-05   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5027e-12
Minuit parameter uncertainties:
  1  26.9707
  2  0.561076
  3  0.224069
  4  0.149151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781212': 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) = 8543.47246384
delta logL = 0.0352585523342

Extracting fit parameters...

4FGL J1446.7+1719
   Spectrum: PowerLaw
233    Prefactor:  3.256e+01  2.697e+01  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.344e+00  5.611e-01  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.863e-01  1.492e-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.274e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.19
Ra Dec: 221.688 17.324
Photon Index (Free Index): 2.34 +/- 0.56
Photon Flux (Free Index): 4.41e-08 +/- 3.71e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.28e-05

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/781212/cmap_HighResolution_440208001_440467201_4FGL_J1446.7+1719_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', photon_flux='4.89e-08', energy_flux2='1.56e-05', photon_flux_error='3.61e-08', dlogl='3.53e-02', energy_flux='1.42e-05', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-10 09:38:28.888699', photon_index_error2='0.56', photon_index2='2.34', ts='3.12', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.28e-05', EG='1.27', time_epoch_completed='1631291908.89', return_code='0', job_id='781212', GAL2='0.79', EG2='1.27', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.71e-08', ts2='3.19', photon_index='2.50' WHERE bin_id='775' AND source_name='4FGL J1446.7+1719' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:38:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 781212: <4FGL_J1446.7+1719_daily_bin775> in cluster <slac> Done

Job <4FGL_J1446.7+1719_daily_bin775> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 09:26:31 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:26:32 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:26:32 2021
Terminated at Fri Sep 10 09:38:29 2021
Results reported at Fri Sep 10 09:38:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.7+1719_daily_bin775 221.688 17.3237 440208001 440467201 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 :                                   702.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            718 sec.

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

