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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1012
RA = 221.591, Dec = 31.1955
tmin = 501638401, tmax = 501897601
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='774862', job_status='RUN', time_executed='2021-09-10 09:08:04.734833', time_epoch_executed='1631290084.73' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774862/ft1_4FGL_J1446.3+3111_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774862/ft1_4FGL_J1446.3+3111_daily_bin1012.fits outfile=/scratch/kocevski/774862/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1012.fits ra=221.591 dec=31.1955 rad=12.0 tmin=501638401.0 tmax=501897601.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.52
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.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/774862/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/774862/ft1_filtered_4FGL_J1446.3+3111_daily_bin1012.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774862/ft1_filtered_4FGL_J1446.3+3111_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/774862/ltcube_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.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/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.fits
.....................!
real 11.81
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774862/ft1_filtered_4FGL_J1446.3+3111_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/774862/ltcube_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.fits outfile=/scratch/kocevski/774862/expmap_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.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/774862/ltcube_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.fits
.....................!
real 191.24
user 186.12
sys 4.72

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/774862/ft1_filtered_4FGL_J1446.3+3111_daily_bin1012.fits scfile=/scratch/kocevski/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.fits outfile=/scratch/kocevski/774862/cmap_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774862/ft1_filtered_4FGL_J1446.3+3111_daily_bin1012.fits scfile=/scratch/kocevski/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.fits outfile=/scratch/kocevski/774862/cmap_HighResolution_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/774862/ft1_filtered_4FGL_J1446.3+3111_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/774862/Model_4FGL_J1446.3+3111_daily_bin1012.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/774862/ft1_filtered_4FGL_J1446.3+3111_daily_bin1012.fits.....................!
real 44.11
user 42.78
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/774862/ft1_filtered_4FGL_J1446.3+3111_daily_bin1012.fits', '/scratch/kocevski/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.fits', expMap='/scratch/kocevski/774862/expmap_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.fits', expCube='/scratch/kocevski/774862/ltcube_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/774862/Model_4FGL_J1446.3+3111_daily_bin1012.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/774862/ft1_filtered_4FGL_J1446.3+3111_daily_bin1012.fits
Spacecraft file(s): /scratch/kocevski/774862/ft2_4FGL_J1446.3+3111_daily_bin1012.fits
Exposure map: /scratch/kocevski/774862/expmap_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.fits
Exposure cube: /scratch/kocevski/774862/ltcube_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/774862/Model_4FGL_J1446.3+3111_daily_bin1012.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) = 5244.93917972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35411       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.458       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7416       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.141       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5652       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5166       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0500       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0078       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.518       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7723       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.680       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8474       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6239       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7451       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99670       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72583       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=   5244.758     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3333 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36291        3.7966        .80487E-06   -.49634E-03
   2  Prefactor     .10000E-03    9.5142        .25170E-06** at limit **
   3  norm          .10000E-03    1.0369        .15201E-07** at limit **
   4  Prefactor     .10000E-03    46.504        .36942E-06** at limit **
   5  Prefactor     45.458        21.339       -.62132E-06   -.18913E-04
   6  Prefactor     3.7420        3.2629       -.75393E-07   -.56169E-04
   7  norm          .10000E-03    6.5954       -.23133E-07** at limit **
   8  norm          12.141        3.8941        .16026E-07   -.20670E-05
   9  Prefactor     .10000E-03    8.8798       -.25879E-06** at limit **
  10  norm          .10000E-03    .93447        .39590E-07** at limit **
  11  norm          5.5656        6.6765        .39906E-05   -.89976E-04
  12  Prefactor     9.5205        44.467       -.30195E-05    .25658E-05
  13  norm          6.0499        3.8062       -.81595E-08   -.10857E-04
  14  Prefactor     .10000E-03    13.784        .16345E-06** at limit **
  15  norm          .10000E-03    3.0095       -.69364E-07** at limit **
  16  Prefactor     .10000E-03    4.2462       -.13359E-07** at limit **
  17  Prefactor     9.0075        10.805       -.13470E-07    .89501E-05
  18  Prefactor     20.518        11.349        .95391E-07    .72500E-06
  19  norm          1.7733        2.5139       -.82168E-08    .45791E-04
  20  Prefactor     15.578        97.757       -.13374E-04   -.10343E-03
  21  Prefactor     4.8469        9.0990        .40348E-06   -.79701E-06
  22  norm          2.6242        1.2292       -.47757E-07   -.49712E-04
  23  Prefactor     1.7453        5.5632        .11601E-05   -.76148E-06
  24  Prefactor     .10000E-03    73.174        .55479E-06** at limit **
  25  Prefactor     .10000E-03    8.0361       -.87404E-07** at limit **
  26  Normalizat    .99651        .18797        .14175E-05   -.19114E-03
  27  Prefactor     .72600        .16258       -.19817E-05   -.93330E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.362909
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4585
  Prefactor  = 3.74203
  norm       = 0.0001
  norm       = 12.1413
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.56564
  Prefactor  = 9.52047
  norm       = 6.04986
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.00753
  Prefactor  = 20.5182
  norm       = 1.77332
  Prefactor  = 15.5778
  Prefactor  = 4.84688
  norm       = 2.6242
  Prefactor  = 1.74526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.996513
  Prefactor  = 0.726
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.758     FROM HESSE     STATUS=OK           490 CALLS     3823 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36291        25.237        .26441E-02   -1.5587    
   2  Prefactor     .10000E-03    9.5277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.0390        .72009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.458        21.249        .59466E-04   -1.4358    
   6  Prefactor     3.7420        3.2737        .11664E-03   -1.5321    
   7  norm          .10000E-03    6.5993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.141        3.8964        .77866E-04   -1.5011    
   9  Prefactor     .10000E-03    8.8950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .94744        .68364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5656        6.8048        .85151E-03   -1.5236    
  12  Prefactor     9.5205        44.537        .12991E-03   -1.5091    
  13  norm          6.0499        3.8079        .10867E-03   -1.5216    
  14  Prefactor     .10000E-03    13.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.0122        .12271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2515        .14574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0075        10.688        .13354E-03   -1.5108    
  18  Prefactor     20.518        11.356        .88424E-04   -1.4802    
  19  norm          1.7733        2.4673        .96611E-04   -1.5442    
  20  Prefactor     15.578        105.81        .10115E-03   -1.4918    
  21  Prefactor     4.8469        9.0942        .18271E-03   -1.5268    
  22  norm          2.6242        1.2231        .50301E-04   -1.5384    
  23  Prefactor     1.7453        5.4989        .28175E-03   -1.5444    
  24  Prefactor     .10000E-03    73.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.0430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99651        .22450        .22765E-03   -.93147    
  27  Prefactor     .72600        .19001        .24418E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3651e-09
Minuit parameter uncertainties:
  1  6.05448
  2  1.63814e-05
  3  1.00775e-06
  4  1.16006e-05
  5  21.2525
  6  3.27388
  7  5.91276e-06
  8  3.89647
  9  2.55672e-05
  10  3.93139e-07
  11  6.80578
  12  41.2333
  13  3.80808
  14  3.11812e-06
  15  6.56915e-06
  16  4.92234e-06
  17  10.6901
  18  11.3574
  19  2.46747
  20  81.4044
  21  9.09681
  22  1.22311
  23  5.50046
  24  5.95791e-07
  25  1.69136e-05
  26  0.224712
  27  0.190176
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.118e-06  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:  7.260e-01  1.902e-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:  9.965e-01  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/774862/likelihoodResults_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.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) = 5244.75873801
delta logL = -0.000345128105437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5244.7583929
delta logL = -1.81862560567e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5564       1.0000          .0000       10.000    
     3 'Normalizat'    .99650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72602       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=   5244.758     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.723        .90712E-02** at limit **
   2  Index         2.5564        6.2775        .50000       -.54996E-06
   3  Normalizat    .99652        .16855        .46123E-01    .99181E-05
   4  Prefactor     .72600        .15737        .42746E-01    .14619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.55639
  Normalizat = 0.996516
  Prefactor  = 0.725998
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.758     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5564        6.2762        .50000       -.51062    
   3  Normalizat    .99652        .19409        .22765E-03   -.93147    
   4  Prefactor     .72600        .18122        .24418E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15077e-13
Minuit parameter uncertainties:
  1  2.93211e-06
  2  4.45126
  3  0.19423
  4  0.181365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774862': 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) = 5244.75839288
delta logL = 7.18500814401e-11

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.932e-06  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  4.451e+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:  7.260e-01  1.814e-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:  9.965e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 221.591 31.195

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/774862/cmap_HighResolution_501638401_501897601_4FGL_J1446.3+3111_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-10 09:19:16.149577', job_id='774862', GAL2='0.73', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631290756.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='7.19e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1012' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:19:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 774862: <4FGL_J1446.3+3111_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1012> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 10 09:06:01 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:06:02 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:06:02 2021
Terminated at Fri Sep 10 09:19:16 2021
Results reported at Fri Sep 10 09:19:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1012 221.591 31.1955 501638401 501897601 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

