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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1099
RA = 221.591, Dec = 31.1955
tmin = 524188801, tmax = 524448001
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='774995', job_status='RUN', time_executed='2021-09-10 09:08:46.993871', time_epoch_executed='1631290126.99' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774995/ft1_4FGL_J1446.3+3111_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774995/ft2_4FGL_J1446.3+3111_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774995/ft1_4FGL_J1446.3+3111_daily_bin1099.fits outfile=/scratch/kocevski/774995/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1099.fits ra=221.591 dec=31.1955 rad=12.0 tmin=524188801.0 tmax=524448001.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.43
user 3.17
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774995/ft2_4FGL_J1446.3+3111_daily_bin1099.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/774995/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1099.fits evtable="EVENTS" outfile="/scratch/kocevski/774995/ft1_filtered_4FGL_J1446.3+3111_daily_bin1099.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774995/ft1_filtered_4FGL_J1446.3+3111_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/774995/ft2_4FGL_J1446.3+3111_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/774995/ltcube_524188801_524448001_4FGL_J1446.3+3111_daily_bin1099.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/774995/ft2_4FGL_J1446.3+3111_daily_bin1099.fits
.....................!
real 11.73
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774995/ft1_filtered_4FGL_J1446.3+3111_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/774995/ft2_4FGL_J1446.3+3111_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/774995/ltcube_524188801_524448001_4FGL_J1446.3+3111_daily_bin1099.fits outfile=/scratch/kocevski/774995/expmap_524188801_524448001_4FGL_J1446.3+3111_daily_bin1099.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/774995/ltcube_524188801_524448001_4FGL_J1446.3+3111_daily_bin1099.fits
.....................!
real 190.71
user 184.91
sys 4.75

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/774995/ft1_filtered_4FGL_J1446.3+3111_daily_bin1099.fits scfile=/scratch/kocevski/774995/ft2_4FGL_J1446.3+3111_daily_bin1099.fits outfile=/scratch/kocevski/774995/cmap_524188801_524448001_4FGL_J1446.3+3111_daily_bin1099.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774995/ft1_filtered_4FGL_J1446.3+3111_daily_bin1099.fits scfile=/scratch/kocevski/774995/ft2_4FGL_J1446.3+3111_daily_bin1099.fits outfile=/scratch/kocevski/774995/cmap_HighResolution_524188801_524448001_4FGL_J1446.3+3111_daily_bin1099.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/774995/ft1_filtered_4FGL_J1446.3+3111_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/774995/ft2_4FGL_J1446.3+3111_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/774995/Model_4FGL_J1446.3+3111_daily_bin1099.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/774995/ft1_filtered_4FGL_J1446.3+3111_daily_bin1099.fits.....................!
real 47.92
user 46.58
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7689       1.0000         .10000E-03   10000.    
     3 'norm      '    .39251E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11434E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3834       1.0000         .10000E-03   10000.    
     7 'norm      '    7.5361       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.135       1.0000         .10000E-03   10000.    
    10 'norm      '    .66708E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.328       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.898       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0007       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6779       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2975       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0177       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.9267       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.678       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .74052       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1881       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=   6269.422     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     2880 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8285        .26344E-07** at limit **
   2  Prefactor     2.7798        32.186       -.22515E-05   -.89723E-05
   3  norm          .23341E-01    2.0348       -.28302E-06    .16600E-03
   4  Prefactor     19.739        15.223        .60904E-06    .11924E-03
   5  Prefactor     .10000E-03    17.699       -.19859E-05** at limit **
   6  Prefactor     2.3857        4.0138        .79914E-06    .18191E-05
   7  norm          7.5381        10.494       -.29143E-06    .20920E-04
   8  norm          6.4675        2.8944       -.32951E-07    .31597E-04
   9  Prefactor     19.134        23.270       -.14062E-05   -.11156E-04
  10  norm          .71729E-01    1.6840       -.26435E-06    .14114E-03
  11  norm          5.7783        6.3088       -.37574E-06   -.11106E-04
  12  Prefactor     30.330        30.976        .86042E-06    .19390E-04
  13  norm          3.8118        3.3833        .10651E-06    .48190E-04
  14  Prefactor     26.898        24.187       -.74352E-06   -.83214E-05
  15  norm          8.0007        7.0893       -.10863E-06    .57287E-05
  16  Prefactor     2.6775        3.4868        .99039E-06   -.13222E-02
  17  Prefactor     4.5628        5.1162        .65947E-06    .60949E-04
  18  Prefactor     2.2975        4.6139       -.39237E-05   -.30832E-03
  19  norm          1.0181        1.5447       -.19292E-06   -.27794E-03
  20  Prefactor     .10000E-03    32.344        .16000E-05** at limit **
  21  Prefactor     .10000E-03    2.1633        .17855E-07** at limit **
  22  norm          5.9271        1.9676       -.14899E-07    .74119E-05
  23  Prefactor     22.676        13.265        .65657E-07   -.29531E-05
  24  Prefactor     .10000E-03    14.674        .17831E-05** at limit **
  25  Prefactor     .10000E-03    10.006       -.35387E-06** at limit **
  26  Normalizat    .74047        .18362       -.27462E-06    .12532E-03
  27  Prefactor     1.1882        .16413        .65320E-06    .52443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.77979
  norm       = 0.0233414
  Prefactor  = 19.7391
  Prefactor  = 0.0001
  Prefactor  = 2.38568
  norm       = 7.53805
  norm       = 6.4675
  Prefactor  = 19.1336
  norm       = 0.0717287
  norm       = 5.77832
  Prefactor  = 30.3302
  norm       = 3.81179
  Prefactor  = 26.8983
  norm       = 8.00071
  Prefactor  = 2.6775
  Prefactor  = 4.56279
  Prefactor  = 2.29747
  norm       = 1.01806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.92706
  Prefactor  = 22.6762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.740469
  Prefactor  = 1.18815
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.422     FROM HESSE     STATUS=OK           508 CALLS     3388 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8672        .13001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7798        31.987        .24459E-03   -1.5374    
   3  norm          .23341E-01    3.8198        .38534E-01   -1.5677    
   4  Prefactor     19.739        15.225        .90142E-04   -1.4819    
   5  Prefactor     .10000E-03    17.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3857        4.0294        .18793E-03   -1.5399    
   7  norm          7.5381        10.487        .14609E-03   -1.5159    
   8  norm          6.4675        2.8953        .87214E-04   -1.5199    
   9  Prefactor     19.134        23.336        .91561E-04   -1.4833    
  10  norm          .71729E-01    7.8422        .19964E-02   -1.5654    
  11  norm          5.7783        6.3159        .16710E-03   -1.5227    
  12  Prefactor     30.330        30.971        .72754E-04   -1.4606    
  13  norm          3.8118        3.3862        .13295E-03   -1.5317    
  14  Prefactor     26.898        24.201        .77243E-04   -1.4670    
  15  norm          8.0007        7.1021        .14175E-03   -1.5142    
  16  Prefactor     2.6775        7.2642        .12451E-02   -1.5381    
  17  Prefactor     4.5628        5.1002        .17739E-03   -1.5281    
  18  Prefactor     2.2975        4.6506        .23670E-03   -1.5405    
  19  norm          1.0181        1.5139        .10968E-03   -1.5506    
  20  Prefactor     .10000E-03    32.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.1678        .11373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.9271        1.9811        .52468E-04   -1.5221    
  23  Prefactor     22.676        13.351        .84113E-04   -1.4755    
  24  Prefactor     .10000E-03    14.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .74047        .21701        .28531E-03   -1.0232    
  27  Prefactor     1.1882        .19447        .22466E-03   -.86697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2484e-09
Minuit parameter uncertainties:
  1  2.39353e-06
  2  18.8715
  3  0.595954
  4  15.2278
  5  4.31654e-05
  6  4.02988
  7  10.4894
  8  2.89535
  9  23.3472
  10  1.49917
  11  6.3166
  12  30.9873
  13  3.38638
  14  24.2102
  15  7.10288
  16  7.26661
  17  5.10064
  18  4.65137
  19  1.51399
  20  4.33439e-05
  21  1.41523e-07
  22  1.98116
  23  13.3527
  24  2.67087e-05
  25  5.86268e-06
  26  0.217258
  27  0.194585
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.690e+01  2.421e+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.188e+00  1.946e-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:  7.405e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 7.99e-06 +/- 7.19e-06

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

Saving results to:
/scratch/kocevski/774995/likelihoodResults_524188801_524448001_4FGL_J1446.3+3111_daily_bin1099.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) = 6268.3981509
delta logL = 1.02413235774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6268.15801965
delta logL = 1.26426361123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.244       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6961       1.0000          .0000       10.000    
     3 'Normalizat'    .75999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1704       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=   6268.158     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      249 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.257        36.584        .28573E-03   -.74325E-04
   2  Index         1.6961        .43081        .76600E-02   -.15359E-03
   3  Normalizat    .76000        .18957        .28175E-03   -.25832E-03
   4  Prefactor     1.1704        .18573        .22584E-03   -.28182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.2573
  Index      = 1.69613
  Normalizat = 0.760004
  Prefactor  = 1.17043
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.158     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.257        36.750        .11429E-04   -1.4303    
   2  Index         1.6961        .43283        .15320E-02   -.72185    
   3  Normalizat    .76000        .18970        .11270E-04   -1.0157    
   4  Prefactor     1.1704        .18586        .45168E-04   -.87246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7752e-11
Minuit parameter uncertainties:
  1  36.7673
  2  0.433795
  3  0.189867
  4  0.185965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774995': 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) = 6268.15801957
delta logL = 1.26426368733

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  4.926e+01  3.677e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.696e+00  4.338e-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.170e+00  1.860e-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:  7.600e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 221.591 31.195
Photon Index (Free Index): 1.70 +/- 0.43
Photon Flux (Free Index): 2.11e-08 +/- 1.79e-08
Energy Flux (Free Index): 3.49e-05 +/- 4.19e-05

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/774995/cmap_HighResolution_524188801_524448001_4FGL_J1446.3+3111_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.19e-03', comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='3.49e-05', photon_flux_error='2.63e-08', dlogl='1.26e+00', energy_flux='7.99e-06', photon_flux2='2.11e-08', job_status='DONE', time_completed='2021-09-10 09:20:46.842266', photon_index_error2='0.43', photon_index2='1.70', ts='2.16', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='9.21e-08', energy_flux_error2='4.19e-05', EG='0.74', time_epoch_completed='1631290846.84', return_code='0', job_id='774995', GAL2='1.17', EG2='0.76', return_code2='0', energy_flux_error='7.19e-06', photon_flux_error2='1.79e-08', ts2='4.69', photon_index='2.56' WHERE bin_id='1099' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:20:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 774995: <4FGL_J1446.3+3111_daily_bin1099> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1099 221.591 31.1955 524188801 524448001 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 :                                   696.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

