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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1427
RA = 221.591, Dec = 31.1955
tmin = 609206401, tmax = 609465601
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='776610', job_status='RUN', time_executed='2021-09-10 09:14:40.802728', time_epoch_executed='1631290480.8' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776610/ft1_4FGL_J1446.3+3111_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776610/ft2_4FGL_J1446.3+3111_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776610/ft1_4FGL_J1446.3+3111_daily_bin1427.fits outfile=/scratch/kocevski/776610/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1427.fits ra=221.591 dec=31.1955 rad=12.0 tmin=609206401.0 tmax=609465601.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.76
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776610/ft1_filtered_4FGL_J1446.3+3111_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/776610/ft2_4FGL_J1446.3+3111_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/776610/ltcube_609206401_609465601_4FGL_J1446.3+3111_daily_bin1427.fits outfile=/scratch/kocevski/776610/expmap_609206401_609465601_4FGL_J1446.3+3111_daily_bin1427.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/776610/ltcube_609206401_609465601_4FGL_J1446.3+3111_daily_bin1427.fits
.....................!
real 192.34
user 186.47
sys 5.41

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/776610/ft1_filtered_4FGL_J1446.3+3111_daily_bin1427.fits scfile=/scratch/kocevski/776610/ft2_4FGL_J1446.3+3111_daily_bin1427.fits outfile=/scratch/kocevski/776610/cmap_609206401_609465601_4FGL_J1446.3+3111_daily_bin1427.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776610/ft1_filtered_4FGL_J1446.3+3111_daily_bin1427.fits scfile=/scratch/kocevski/776610/ft2_4FGL_J1446.3+3111_daily_bin1427.fits outfile=/scratch/kocevski/776610/cmap_HighResolution_609206401_609465601_4FGL_J1446.3+3111_daily_bin1427.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3195       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6432       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.433       1.0000         .10000E-03   10000.    
     7 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2451       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8553       1.0000         .10000E-03   10000.    
    11 'norm      '    .22488       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.525       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2960       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.410       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5788       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .46206       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .82367       1.0000         .10000E-03   10000.    
    22 'norm      '    .39316       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.349       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1345       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79179       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=   7603.473     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3321 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3193        5.5718        .22468E-06   -.54365E-04
   2  Prefactor     .10000E-03    14.321        .11912E-05** at limit **
   3  norm          .10000E-03    1.4911        .18586E-06** at limit **
   4  Prefactor     9.6778        14.825       -.76893E-06   -.64421E-04
   5  Prefactor     .10001E-03    27.621        .37513E-05** at limit **
   6  Prefactor     12.434        4.5078        .18438E-06   -.14581E-03
   7  norm          .10000E-03    5.1881        .37630E-06** at limit **
   8  norm          1.2449        2.0479        .64093E-07   -.37404E-04
   9  Prefactor     .10000E-03    9.1490        .13778E-06** at limit **
  10  norm          3.8548        5.2504        .14821E-06   -.11999E-04
  11  norm          .20562        2.7612       -.74180E-06    .18267E-03
  12  Prefactor     .10000E-03    14.644        .77146E-07** at limit **
  13  norm          .10000E-03    1.5355       -.36849E-07** at limit **
  14  Prefactor     51.511        34.364        .13463E-05   -.62238E-04
  15  norm          7.2971        5.7814       -.84628E-07   -.25528E-04
  16  Prefactor     15.416        13.027       -.74933E-06   -.52052E-04
  17  Prefactor     3.5789        5.4556        .27475E-05   -.28756E-03
  18  Prefactor     .10000E-03    3.0326       -.18045E-07** at limit **
  19  norm          .46204        .78959       -.19899E-06   -.60038E-04
  20  Prefactor     .10000E-03    17.935        .64848E-06** at limit **
  21  Prefactor     .81988        6.1824        .45130E-06   -.10996E-03
  22  norm          .39365        .63708        .12979E-07   -.34332E-03
  23  Prefactor     .10000E-03    3.2580       -.16728E-07** at limit **
  24  Prefactor     14.347        18.197        .10145E-06   -.27005E-05
  25  Prefactor     .10000E-03    20.879       -.78763E-07** at limit **
  26  Normalizat    1.1345        .16575       -.64027E-06   -.80211E-04
  27  Prefactor     .79184        .14338        .28344E-07   -.78589E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.31927
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.67779
  Prefactor  = 0.000100014
  Prefactor  = 12.4336
  norm       = 0.0001
  norm       = 1.24494
  Prefactor  = 0.0001
  norm       = 3.8548
  norm       = 0.205618
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.5106
  norm       = 7.29712
  Prefactor  = 15.4159
  Prefactor  = 3.57891
  Prefactor  = 0.0001
  norm       = 0.462039
  Prefactor  = 0.0001
  Prefactor  = 0.819884
  norm       = 0.393648
  Prefactor  = 0.0001
  Prefactor  = 14.3472
  Prefactor  = 0.0001
  Normalizat = 1.13447
  Prefactor  = 0.791837
 **********
 **   18 **HESSE 
 **********

 FCN=   7603.473     FROM HESSE     STATUS=OK           496 CALLS     3817 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3193        5.5777        .65639E-03   -1.5097    
   2  Prefactor     .10000E-03    14.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5054        .10400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6778        14.974        .12905E-03   -1.5086    
   5  Prefactor     .10001E-03    29.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.434        4.5227        .10503E-03   -1.5003    
   7  norm          .10000E-03    5.2070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2449        2.0082        .15427E-03   -1.5485    
   9  Prefactor     .10000E-03    9.1856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8548        5.2440        .20553E-03   -1.5315    
  11  norm          .20562        21.262        .26206E-02   -1.5617    
  12  Prefactor     .10000E-03    14.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5427        .10551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.511        34.348        .55872E-04   -1.4271    
  15  norm          7.2971        5.7829        .14849E-03   -1.5168    
  16  Prefactor     15.416        13.061        .10203E-03   -1.4923    
  17  Prefactor     3.5789        5.4926        .10681E-02   -1.5330    
  18  Prefactor     .10000E-03    3.0369        .14829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .46204        .78974        .44460E-04   -1.5572    
  20  Prefactor     .10000E-03    17.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .81988        15.558        .40332E-02   -1.5527    
  22  norm          .39365        .53401        .84357E-03   -1.5582    
  23  Prefactor     .10000E-03    3.2888        .15340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.347        18.173        .10574E-03   -1.4950    
  25  Prefactor     .10000E-03    21.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1345        .19946        .23261E-03   -.88653    
  27  Prefactor     .79184        .17152        .25316E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98027e-08
Minuit parameter uncertainties:
  1  5.57806
  2  0.000262159
  3  1.28078e-05
  4  14.9798
  5  0.00126815
  6  4.52283
  7  4.31832e-05
  8  2.00835
  9  1.99773e-05
  10  5.24463
  11  4.18233
  12  2.12111e-05
  13  1.79321e-06
  14  34.3607
  15  5.78334
  16  13.0632
  17  5.49333
  18  7.61247e-07
  19  0.789756
  20  2.42171e-05
  21  7.14485
  22  0.534016
  23  1.26556e-06
  24  18.1801
  25  1.1156e-05
  26  0.199589
  27  0.171633
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.151e+01  3.436e+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:  7.918e-01  1.716e-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.134e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.39
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 5.59e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.02e-05

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) = 7603.47282188
delta logL = 5.61420711165e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7603.4728095
delta logL = 6.8519879278e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.627       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5480       1.0000          .0000       10.000    
     3 'Normalizat'    1.1351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79150       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7603.473     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      272 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.657        37.188        .55817E-04    .12221E-05
   2  Index         2.5488        .66423        .89503E-02    .36352E-03
   3  Normalizat    1.1350        .18198        .23257E-03    .33729E-05
   4  Prefactor     .79157        .16404        .25320E-03   -.19307E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.6566
  Index      = 2.54878
  Normalizat = 1.13497
  Prefactor  = 0.791568
 **********
 **   18 **HESSE 
 **********

 FCN=   7603.473     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.657        36.473        .22327E-05   -1.4269    
   2  Index         2.5488        .65056        .17901E-02   -.51237    
   3  Normalizat    1.1350        .18202        .93028E-05   -.88637    
   4  Prefactor     .79157        .16411        .10128E-04   -1.0004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41896e-12
Minuit parameter uncertainties:
  1  36.489
  2  0.653004
  3  0.182123
  4  0.164215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776610': 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) = 7603.47280779
delta logL = 7.02314355294e-05

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.166e+01  3.649e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.549e+00  6.530e-01  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.916e-01  1.642e-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.135e+00  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.55 +/- 0.65
Photon Flux (Free Index): 5.55e-08 +/- 5.14e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.02e-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/776610/cmap_HighResolution_609206401_609465601_4FGL_J1446.3+3111_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.59e-08', energy_flux2='1.53e-05', photon_flux_error='3.73e-08', dlogl='7.02e-05', energy_flux='1.53e-05', photon_flux2='5.55e-08', job_status='DONE', time_completed='2021-09-10 09:26:23.364923', photon_index_error2='0.65', photon_index2='2.55', ts='4.39', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='1.13', time_epoch_completed='1631291183.36', return_code='0', job_id='776610', GAL2='0.79', EG2='1.13', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='5.14e-08', ts2='4.39', photon_index='2.56' WHERE bin_id='1427' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:26:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 776610: <4FGL_J1446.3+3111_daily_bin1427> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1427> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 09:11:08 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:11:09 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:09 2021
Terminated at Fri Sep 10 09:26:24 2021
Results reported at Fri Sep 10 09:26:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1427 221.591 31.1955 609206401 609465601 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 :                                   699.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

