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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1494
RA = 221.591, Dec = 31.1955
tmin = 626572801, tmax = 626832001
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='776706', job_status='RUN', time_executed='2021-09-10 09:11:26.322733', time_epoch_executed='1631290286.32' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776706

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776706/ft1_4FGL_J1446.3+3111_daily_bin1494.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776706/ft1_4FGL_J1446.3+3111_daily_bin1494.fits outfile=/scratch/kocevski/776706/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1494.fits ra=221.591 dec=31.1955 rad=12.0 tmin=626572801.0 tmax=626832001.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 2.97
user 2.77
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776706/ft1_filtered_4FGL_J1446.3+3111_daily_bin1494.fits" evtable="EVENTS" scfile=/scratch/kocevski/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits sctable="SC_DATA" outfile=/scratch/kocevski/776706/ltcube_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.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/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits
.....................!
real 12.24
user 11.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776706/ft1_filtered_4FGL_J1446.3+3111_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits sctable="SC_DATA" expcube=/scratch/kocevski/776706/ltcube_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.fits outfile=/scratch/kocevski/776706/expmap_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.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/776706/ltcube_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.fits
.....................!
real 190.16
user 185.92
sys 3.84

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

Setting source of interest to:
4FGL J1446.3+3111 @ 221.591 31.1955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/776706/ft1_filtered_4FGL_J1446.3+3111_daily_bin1494.fits scfile=/scratch/kocevski/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits outfile=/scratch/kocevski/776706/cmap_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.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.591 yref=31.1955 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776706/ft1_filtered_4FGL_J1446.3+3111_daily_bin1494.fits scfile=/scratch/kocevski/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits outfile=/scratch/kocevski/776706/cmap_HighResolution_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.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.591 yref=31.1955 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/776706/ft1_filtered_4FGL_J1446.3+3111_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776706/Model_4FGL_J1446.3+3111_daily_bin1494.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/776706/ft1_filtered_4FGL_J1446.3+3111_daily_bin1494.fits....................!
real 74.43
user 73.07
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/776706/ft1_filtered_4FGL_J1446.3+3111_daily_bin1494.fits', '/scratch/kocevski/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits', expMap='/scratch/kocevski/776706/expmap_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.fits', expCube='/scratch/kocevski/776706/ltcube_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/776706/Model_4FGL_J1446.3+3111_daily_bin1494.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1446.3+3111'

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.552e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/776706/ft1_filtered_4FGL_J1446.3+3111_daily_bin1494.fits
Spacecraft file(s): /scratch/kocevski/776706/ft2_4FGL_J1446.3+3111_daily_bin1494.fits
Exposure map: /scratch/kocevski/776706/expmap_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.fits
Exposure cube: /scratch/kocevski/776706/ltcube_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/776706/Model_4FGL_J1446.3+3111_daily_bin1494.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) = 10546.616018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.134       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9878       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4941       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.723       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7980       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.680       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1754       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1274       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8072       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1007       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1103       1.0000         .10000E-03   10000.    
    20 'Prefactor '    83.031       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2280       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0840       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98324       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10546.62     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3287 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7502        .47835E-06** at limit **
   2  Prefactor     .10000E-03    8.6427        .28414E-05** at limit **
   3  norm          3.2037        2.5972        .13472E-06    .83705E-04
   4  Prefactor     .10000E-03    9.6484       -.27711E-05** at limit **
   5  Prefactor     .10000E-03    3.0316       -.16752E-06** at limit **
   6  Prefactor     10.134        3.4772        .14583E-06    .37778E-03
   7  norm          .10000E-03    3.0574        .81594E-07** at limit **
   8  norm          4.9878        1.9021        .33347E-08    .51919E-04
   9  Prefactor     .10000E-03    5.0453       -.25483E-06** at limit **
  10  norm          2.4940        2.1234        .25334E-07   -.14844E-03
  11  norm          1.2311        2.8718        .70224E-06   -.25852E-03
  12  Prefactor     14.723        23.199       -.32433E-06   -.37083E-04
  13  norm          2.7979        2.4707        .76189E-06   -.11814E-02
  14  Prefactor     24.681        24.060        .33843E-06    .42662E-04
  15  norm          1.1752        5.3338        .20030E-05   -.39676E-03
  16  Prefactor     2.1279        8.0558       -.12902E-06   -.14209E-03
  17  Prefactor     9.8071        5.3908        .29762E-06   -.51210E-03
  18  Prefactor     6.1004        8.5518        .38082E-07   -.12128E-03
  19  norm          2.1103        1.1917       -.10245E-07   -.20218E-03
  20  Prefactor     83.033        51.790        .53113E-06    .55931E-04
  21  Prefactor     .10000E-03    3.9945       -.19823E-07** at limit **
  22  norm          .10000E-03    .43774        .45449E-07** at limit **
  23  Prefactor     .10000E-03    4.0088       -.19939E-07** at limit **
  24  Prefactor     3.2290        15.391        .16498E-05    .68325E-04
  25  Prefactor     .10000E-03    5.0284       -.28690E-06** at limit **
  26  Normalizat    1.0840        .13695       -.51386E-06   -.27587E-04
  27  Prefactor     .98328        .12805       -.17263E-06   -.71623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 3.20374
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 10.1343
  norm       = 0.0001
  norm       = 4.98779
  Prefactor  = 0.0001
  norm       = 2.49403
  norm       = 1.2311
  Prefactor  = 14.7231
  norm       = 2.79791
  Prefactor  = 24.6814
  norm       = 1.17525
  Prefactor  = 2.12794
  Prefactor  = 9.80715
  Prefactor  = 6.10037
  norm       = 2.11035
  Prefactor  = 83.0332
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.22896
  Prefactor  = 0.0001
  Normalizat = 1.08398
  Prefactor  = 0.983279
 **********
 **   18 **HESSE 
 **********

 FCN=   10546.62     FROM HESSE     STATUS=OK           494 CALLS     3781 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.5586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2037        2.5905        .14373E-03   -1.5350    
   4  Prefactor     .10000E-03    10.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0407        .17464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.134        3.4934        .10636E-03   -1.5071    
   7  norm          .10000E-03    3.0654        .17542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9878        1.9034        .85001E-04   -1.5261    
   9  Prefactor     .10000E-03    5.0585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4940        2.1192        .13420E-03   -1.5392    
  11  norm          1.2311        2.8453        .25683E-03   -1.5486    
  12  Prefactor     14.723        23.189        .10438E-03   -1.4940    
  13  norm          2.7979        2.5644        .76297E-03   -1.5373    
  14  Prefactor     24.681        24.125        .80633E-04   -1.4714    
  15  norm          1.1752        5.5997        .42250E-03   -1.5491    
  16  Prefactor     2.1279        7.9678        .28270E-03   -1.5416    
  17  Prefactor     9.8071        5.3998        .63979E-03   -1.5082    
  18  Prefactor     6.1004        8.5893        .16255E-03   -1.5214    
  19  norm          2.1103        1.1839        .77755E-04   -1.5417    
  20  Prefactor     83.033        51.816        .44082E-04   -1.3883    
  21  Prefactor     .10000E-03    4.0524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0405        .13005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.0641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.2290        15.413        .22547E-03   -1.5349    
  25  Prefactor     .10000E-03    5.0409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0840        .16155        .24552E-03   -.90268    
  27  Prefactor     .98328        .15168        .24393E-03   -.93289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53608e-09
Minuit parameter uncertainties:
  1  3.72779e-05
  2  0.000384378
  3  2.59056
  4  0.000332052
  5  9.74579e-06
  6  3.49346
  7  1.0479e-05
  8  1.90342
  9  2.42207e-05
  10  2.11925
  11  2.84565
  12  23.2032
  13  2.56445
  14  24.135
  15  5.13129
  16  7.97173
  17  5.40012
  18  8.59108
  19  1.18388
  20  51.8441
  21  4.50606e-08
  22  6.95838e-08
  23  7.36413e-06
  24  14.1149
  25  2.90146e-05
  26  0.161621
  27  0.151745
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.468e+01  2.413e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.833e-01  1.517e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.084e+00  1.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 7.33e-06 +/- 7.16e-06

TS (Fixed Index): 1.56
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/776706/likelihoodResults_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.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) = 10546.6021337
delta logL = 0.0133157349064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10546.6006266
delta logL = 0.0148228494036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.456       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3367       1.0000          .0000       10.000    
     3 'Normalizat'    1.0927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10546.60     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      251 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.587        461.72        .19849E-02    .57505E-05
   2  Index         2.3496        3.0583        .37547        .21499E-05
   3  Normalizat    1.0919        .38405E-01    .55347E-01    .15326E-04
   4  Prefactor     .97876        .31342E-01    .45999E-01    .15945E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5871
  Index      = 2.34956
  Normalizat = 1.09189
  Prefactor  = 0.978763
 **********
 **   18 **HESSE 
 **********

 FCN=   10546.60     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .11E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.587        25.819        .79396E-04   -1.4696    
   2  Index         2.3496        1.1627        .93237E-02   -.55870    
   3  Normalizat    1.0919        .15974        .24473E-03   -.90013    
   4  Prefactor     .97876        .14782        .24442E-03   -.93441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13736e-14
Minuit parameter uncertainties:
  1  25.8302
  2  1.17776
  3  0.15981
  4  0.147883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776706': 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) = 10546.6005464
delta logL = 0.0149030005559

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.559e+01  2.583e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.350e+00  1.178e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.788e-01  1.479e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.092e+00  1.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.35 +/- 1.18
Photon Flux (Free Index): 2.11e-08 +/- 3.76e-08
Energy Flux (Free Index): 7.43e-06 +/- 7.69e-06

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/776706/cmap_HighResolution_626572801_626832001_4FGL_J1446.3+3111_daily_bin1494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='7.43e-06', photon_flux_error='2.62e-08', dlogl='1.49e-02', energy_flux='7.33e-06', photon_flux2='2.11e-08', job_status='DONE', time_completed='2021-09-10 09:27:48.579673', photon_index_error2='1.18', photon_index2='2.35', ts='1.56', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='8.41e-08', energy_flux_error2='7.69e-06', EG='1.08', time_epoch_completed='1631291268.58', return_code='0', job_id='776706', GAL2='0.98', EG2='1.09', return_code2='0', energy_flux_error='7.16e-06', photon_flux_error2='3.76e-08', ts2='1.58', photon_index='2.56' WHERE bin_id='1494' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:27:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 776706: <4FGL_J1446.3+3111_daily_bin1494> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1494> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 09:11:14 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:11:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 09:11:15 2021
Terminated at Fri Sep 10 09:27:51 2021
Results reported at Fri Sep 10 09:27:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1494 221.591 31.1955 626572801 626832001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1446.3+3111 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   979.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            997 sec.

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

