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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1401
RA = 221.591, Dec = 31.1955
tmin = 602467201, tmax = 602726401
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='776572', job_status='RUN', time_executed='2021-09-10 09:11:14.770835', time_epoch_executed='1631290274.77' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776572

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776572/ft1_4FGL_J1446.3+3111_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776572/ft2_4FGL_J1446.3+3111_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776572/ft1_4FGL_J1446.3+3111_daily_bin1401.fits outfile=/scratch/kocevski/776572/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1401.fits ra=221.591 dec=31.1955 rad=12.0 tmin=602467201.0 tmax=602726401.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.16
user 2.94
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/776572/ft2_4FGL_J1446.3+3111_daily_bin1401.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/776572/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1401.fits evtable="EVENTS" outfile="/scratch/kocevski/776572/ft1_filtered_4FGL_J1446.3+3111_daily_bin1401.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/776572/ft1_filtered_4FGL_J1446.3+3111_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/776572/ft2_4FGL_J1446.3+3111_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/776572/ltcube_602467201_602726401_4FGL_J1446.3+3111_daily_bin1401.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/776572/ft2_4FGL_J1446.3+3111_daily_bin1401.fits
.....................!
real 12.67
user 12.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776572/ft1_filtered_4FGL_J1446.3+3111_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/776572/ft2_4FGL_J1446.3+3111_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/776572/ltcube_602467201_602726401_4FGL_J1446.3+3111_daily_bin1401.fits outfile=/scratch/kocevski/776572/expmap_602467201_602726401_4FGL_J1446.3+3111_daily_bin1401.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/776572/ltcube_602467201_602726401_4FGL_J1446.3+3111_daily_bin1401.fits
.....................!
real 190.03
user 185.22
sys 4.38

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/776572/ft1_filtered_4FGL_J1446.3+3111_daily_bin1401.fits scfile=/scratch/kocevski/776572/ft2_4FGL_J1446.3+3111_daily_bin1401.fits outfile=/scratch/kocevski/776572/cmap_602467201_602726401_4FGL_J1446.3+3111_daily_bin1401.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776572/ft1_filtered_4FGL_J1446.3+3111_daily_bin1401.fits scfile=/scratch/kocevski/776572/ft2_4FGL_J1446.3+3111_daily_bin1401.fits outfile=/scratch/kocevski/776572/cmap_HighResolution_602467201_602726401_4FGL_J1446.3+3111_daily_bin1401.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/776572/ft1_filtered_4FGL_J1446.3+3111_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/776572/ft2_4FGL_J1446.3+3111_daily_bin1401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776572/Model_4FGL_J1446.3+3111_daily_bin1401.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/776572/ft1_filtered_4FGL_J1446.3+3111_daily_bin1401.fits.....................!
real 60.91
user 59.56
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1888       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4836       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8602       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    88.548       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8769       1.0000         .10000E-03   10000.    
     8 'norm      '    6.6616       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6966       1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.322       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0460       1.0000         .10000E-03   10000.    
    14 'Prefactor '    70.615       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.779       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.528       1.0000         .10000E-03   10000.    
    19 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5134       1.0000         .10000E-03   10000.    
    22 'norm      '    .93888       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.9051       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92720       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0914       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=   8593.373     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3262 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1888        8.2168        .13467E-06   -.46634E-03
   2  Prefactor     8.4838        10.881        .18802E-07   -.83518E-05
   3  norm          .10000E-03    2.8402        .10665E-05** at limit **
   4  Prefactor     6.8604        7.0680       -.27724E-07   -.18982E-04
   5  Prefactor     .10000E-03    4.3328        .44665E-06** at limit **
   6  Prefactor     88.548        9.4084       -.99305E-08   -.28630E-05
   7  norm          3.8765        9.1283        .11585E-06   -.40214E-03
   8  norm          6.6616        2.8495       -.63350E-06   -.89372E-04
   9  Prefactor     .10000E-03    12.705        .10827E-04** at limit **
  10  norm          3.6966        2.7154        .30929E-06    .23187E-04
  11  norm          .10000E-03    2.7794       -.53990E-06** at limit **
  12  Prefactor     41.322        31.765        .11072E-05    .22504E-06
  13  norm          2.0461        3.5302       -.40268E-07   -.86948E-04
  14  Prefactor     70.615        39.479        .41979E-06    .36599E-04
  15  norm          .10000E-03    2.1266        .17965E-06** at limit **
  16  Prefactor     .10000E-03    11.252       -.69194E-05** at limit **
  17  Prefactor     10.780        7.2512        .86017E-07    .21577E-03
  18  Prefactor     12.528        7.4564        .77538E-08   -.55385E-06
  19  norm          .10000E-03    .92820       -.89020E-07** at limit **
  20  Prefactor     .10000E-03    17.747       -.29941E-05** at limit **
  21  Prefactor     2.5129        3.6755        .47171E-06   -.13750E-02
  22  norm          .93883        .78731       -.68353E-08   -.11033E-03
  23  Prefactor     .10000E-03    2.4679        .33865E-06** at limit **
  24  Prefactor     .10000E-03    17.502       -.81122E-06** at limit **
  25  Prefactor     6.9051        7.5564        .65277E-08    .11501E-04
  26  Normalizat    .92717        .17293        .26702E-06    .67360E-04
  27  Prefactor     1.0915        .15309       -.65538E-07    .74298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.18879
  Prefactor  = 8.48376
  norm       = 0.0001
  Prefactor  = 6.86042
  Prefactor  = 0.0001
  Prefactor  = 88.5475
  norm       = 3.87649
  norm       = 6.66158
  Prefactor  = 0.0001
  norm       = 3.69665
  norm       = 0.0001
  Prefactor  = 41.3224
  norm       = 2.04615
  Prefactor  = 70.6154
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7798
  Prefactor  = 12.5276
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51293
  norm       = 0.938825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.90515
  Normalizat = 0.927174
  Prefactor  = 1.09146
 **********
 **   18 **HESSE 
 **********

 FCN=   8593.373     FROM HESSE     STATUS=OK           494 CALLS     3756 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1888        8.4878        .80686E-03   -1.5210    
   2  Prefactor     8.4838        10.878        .13763E-03   -1.5125    
   3  norm          .10000E-03    2.9337        .30464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8604        7.0709        .15318E-03   -1.5184    
   5  Prefactor     .10000E-03    4.3372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     88.548        9.4363        .42698E-04   -1.3823    
   7  norm          3.8765        9.4426        .10247E-02   -1.5314    
   8  norm          6.6616        2.8542        .99284E-04   -1.5192    
   9  Prefactor     .10000E-03    12.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6966        2.7162        .12715E-03   -1.5323    
  11  norm          .10000E-03    2.8412        .15089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.322        31.762        .62360E-04   -1.4421    
  13  norm          2.0461        3.5169        .22053E-03   -1.5422    
  14  Prefactor     70.615        39.631        .47771E-04   -1.4025    
  15  norm          .10000E-03    2.1274        .13202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.780        7.0614        .12203E-03   -1.5051    
  18  Prefactor     12.528        7.4619        .11317E-03   -1.5000    
  19  norm          .10000E-03    1.9215        .16494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5129        7.5937        .12886E-02   -1.5391    
  22  norm          .93883        .75840        .71637E-03   -1.5514    
  23  Prefactor     .10000E-03    2.4778        .14206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.9051        7.5581        .15268E-03   -1.5182    
  26  Normalizat    .92717        .20683        .29424E-03   -.95512    
  27  Prefactor     1.0915        .18617        .25202E-03   -.89740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6385e-09
Minuit parameter uncertainties:
  1  8.48946
  2  10.8808
  3  4.82359e-06
  4  7.07172
  5  2.88853e-07
  6  9.43649
  7  9.44619
  8  2.85423
  9  4.86691e-05
  10  2.71625
  11  2.64085e-06
  12  31.7752
  13  3.51721
  14  39.646
  15  7.26312e-07
  16  2.69977e-05
  17  7.06193
  18  7.46242
  19  6.52679e-06
  20  2.31881e-05
  21  7.59666
  22  0.758403
  23  3.14245e-08
  24  8.69177e-06
  25  7.55916
  26  0.207007
  27  0.186282
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  7.062e+01  3.965e+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:  1.091e+00  1.863e-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.272e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.14
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.18e-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) = 8593.307438
delta logL = 0.0656989554936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8593.30381512
delta logL = 0.0693218362358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.927       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3598       1.0000          .0000       10.000    
     3 'Normalizat'    .93835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0838       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=   8593.304     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      304 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.911        52.817        .44375E-04    .51956E-04
   2  Index         2.3596        .51936        .78143E-02    .38364E-03
   3  Normalizat    .93842        .19909        .29269E-03   -.47310E-04
   4  Prefactor     1.0837        .18108        .25277E-03    .14653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.911
  Index      = 2.35958
  Normalizat = 0.938425
  Prefactor  = 1.08374
 **********
 **   18 **HESSE 
 **********

 FCN=   8593.304     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.911        51.618        .88750E-05   -1.3895    
   2  Index         2.3596        .50727        .15629E-02   -.55634    
   3  Normalizat    .93842        .19928        .11708E-04   -.95123    
   4  Prefactor     1.0837        .18123        .10111E-04   -.89988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43275e-10
Minuit parameter uncertainties:
  1  51.6458
  2  0.508486
  3  0.199435
  4  0.18133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776572': 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) = 8593.30381478
delta logL = 0.0693221760193

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  8.191e+01  5.165e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.360e+00  5.085e-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:  1.084e+00  1.813e-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.384e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.24
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.36 +/- 0.51
Photon Flux (Free Index): 6.86e-08 +/- 4.61e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.58e-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/776572/cmap_HighResolution_602467201_602726401_4FGL_J1446.3+3111_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='2.37e-05', photon_flux_error='4.30e-08', dlogl='6.93e-02', energy_flux='2.10e-05', photon_flux2='6.86e-08', job_status='DONE', time_completed='2021-09-10 09:24:08.504566', photon_index_error2='0.51', photon_index2='2.36', ts='5.14', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='0.93', time_epoch_completed='1631291048.5', return_code='0', job_id='776572', GAL2='1.08', EG2='0.94', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='4.61e-08', ts2='5.24', photon_index='2.56' WHERE bin_id='1401' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:24:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 776572: <4FGL_J1446.3+3111_daily_bin1401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1401 221.591 31.1955 602467201 602726401 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 :                                   771.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

