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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1505
RA = 221.591, Dec = 31.1955
tmin = 629424001, tmax = 629683201
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='776721', job_status='RUN', time_executed='2021-09-10 09:13:30.957827', time_epoch_executed='1631290410.96' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776721/ft1_4FGL_J1446.3+3111_daily_bin1505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776721/ft2_4FGL_J1446.3+3111_daily_bin1505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776721/ft1_4FGL_J1446.3+3111_daily_bin1505.fits outfile=/scratch/kocevski/776721/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1505.fits ra=221.591 dec=31.1955 rad=12.0 tmin=629424001.0 tmax=629683201.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.55
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/776721/ft2_4FGL_J1446.3+3111_daily_bin1505.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/776721/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1505.fits evtable="EVENTS" outfile="/scratch/kocevski/776721/ft1_filtered_4FGL_J1446.3+3111_daily_bin1505.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/776721/ft1_filtered_4FGL_J1446.3+3111_daily_bin1505.fits" evtable="EVENTS" scfile=/scratch/kocevski/776721/ft2_4FGL_J1446.3+3111_daily_bin1505.fits sctable="SC_DATA" outfile=/scratch/kocevski/776721/ltcube_629424001_629683201_4FGL_J1446.3+3111_daily_bin1505.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/776721/ft2_4FGL_J1446.3+3111_daily_bin1505.fits
.....................!
real 11.95
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776721/ft1_filtered_4FGL_J1446.3+3111_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/776721/ft2_4FGL_J1446.3+3111_daily_bin1505.fits sctable="SC_DATA" expcube=/scratch/kocevski/776721/ltcube_629424001_629683201_4FGL_J1446.3+3111_daily_bin1505.fits outfile=/scratch/kocevski/776721/expmap_629424001_629683201_4FGL_J1446.3+3111_daily_bin1505.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/776721/ltcube_629424001_629683201_4FGL_J1446.3+3111_daily_bin1505.fits
.....................!
real 190.58
user 185.14
sys 5.07

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/776721/ft1_filtered_4FGL_J1446.3+3111_daily_bin1505.fits scfile=/scratch/kocevski/776721/ft2_4FGL_J1446.3+3111_daily_bin1505.fits outfile=/scratch/kocevski/776721/cmap_629424001_629683201_4FGL_J1446.3+3111_daily_bin1505.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776721/ft1_filtered_4FGL_J1446.3+3111_daily_bin1505.fits scfile=/scratch/kocevski/776721/ft2_4FGL_J1446.3+3111_daily_bin1505.fits outfile=/scratch/kocevski/776721/cmap_HighResolution_629424001_629683201_4FGL_J1446.3+3111_daily_bin1505.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8680       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.745       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8707       1.0000         .10000E-03   10000.    
     7 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.6825       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.8304       1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.525       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7227       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0641       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.087       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0798       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6631       1.0000         .10000E-03   10000.    
    20 'Prefactor '    71.232       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .40552       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.605       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91449       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86487       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=   5586.210     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3209 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8677        6.0351       -.49749E-08   -.63366E-03
   2  Prefactor     .10000E-03    11.185       -.15155E-05** at limit **
   3  norm          .10000E-03    2.2311        .12993E-07** at limit **
   4  Prefactor     10.735        11.718       -.50953E-06    .42825E-04
   5  Prefactor     .10000E-03    18.134       -.14563E-05** at limit **
   6  Prefactor     3.8701        3.2104       -.63923E-06   -.68935E-04
   7  norm          .10000E-03    6.1444        .26401E-06** at limit **
   8  norm          8.6825        3.2474       -.80088E-06   -.14862E-03
   9  Prefactor     .10000E-03    12.398       -.16217E-06** at limit **
  10  norm          7.8306        4.3014       -.79171E-07   -.92603E-05
  11  norm          .10000E-03    1.9364        .33892E-07** at limit **
  12  Prefactor     56.518        39.505       -.61815E-05   -.49714E-04
  13  norm          4.7229        4.0102        .87495E-07    .85549E-05
  14  Prefactor     .10000E-03    9.8161        .79875E-07** at limit **
  15  norm          2.0640        4.9496        .80046E-07   -.60398E-04
  16  Prefactor     22.858        12.644       -.31034E-06   -.23785E-05
  17  Prefactor     20.086        9.8986        .97977E-07    .14625E-04
  18  Prefactor     2.0806        2.3687        .52955E-06   -.19643E-02
  19  norm          2.6627        1.9294        .13829E-06    .15056E-04
  20  Prefactor     71.224        70.142       -.74219E-05   -.26702E-04
  21  Prefactor     .10000E-03    3.5606        .82722E-07** at limit **
  22  norm          .40620        .77825       -.53124E-07   -.38430E-03
  23  Prefactor     .10000E-03    4.0393       -.15527E-06** at limit **
  24  Prefactor     22.606        25.065        .16898E-05    .21906E-04
  25  Prefactor     .10000E-03    14.239        .29996E-05** at limit **
  26  Normalizat    .91468        .17365        .14666E-05   -.17689E-04
  27  Prefactor     .86467        .15778       -.16991E-06    .68760E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.86765
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7351
  Prefactor  = 0.0001
  Prefactor  = 3.87012
  norm       = 0.0001
  norm       = 8.68251
  Prefactor  = 0.0001
  norm       = 7.83064
  norm       = 0.0001
  Prefactor  = 56.5178
  norm       = 4.72285
  Prefactor  = 0.0001
  norm       = 2.06396
  Prefactor  = 22.8576
  Prefactor  = 20.0862
  Prefactor  = 2.08059
  norm       = 2.66266
  Prefactor  = 71.2244
  Prefactor  = 0.0001
  norm       = 0.406198
  Prefactor  = 0.0001
  Prefactor  = 22.6062
  Prefactor  = 0.0001
  Normalizat = 0.914684
  Prefactor  = 0.864665
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.210     FROM HESSE     STATUS=OK           490 CALLS     3699 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8677        6.1964        .82892E-03   -1.5223    
   2  Prefactor     .10000E-03    11.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2727        .10893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.735        11.709        .12223E-03   -1.5053    
   5  Prefactor     .10000E-03    18.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8701        3.2152        .11647E-03   -1.5314    
   7  norm          .10000E-03    6.1496        .18089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.6825        3.2516        .79681E-04   -1.5119    
   9  Prefactor     .10000E-03    12.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.8306        4.3015        .11042E-03   -1.5148    
  11  norm          .10000E-03    1.9446        .10156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     56.518        39.552        .26678E-03   -1.4203    
  13  norm          4.7229        4.0088        .13306E-03   -1.5273    
  14  Prefactor     .10000E-03    9.8301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0640        4.9167        .25092E-03   -1.5421    
  16  Prefactor     22.858        12.654        .83778E-04   -1.4751    
  17  Prefactor     20.086        9.8990        .89367E-04   -1.4811    
  18  Prefactor     2.0806        5.1889        .13002E-02   -1.5419    
  19  norm          2.6627        1.9230        .79135E-04   -1.5382    
  20  Prefactor     71.224        70.207        .47565E-04   -1.4018    
  21  Prefactor     .10000E-03    3.5918        .13770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .40620        .66709        .86968E-03   -1.5581    
  23  Prefactor     .10000E-03    4.0649        .14646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.606        25.022        .84248E-04   -1.4757    
  25  Prefactor     .10000E-03    14.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91468        .20011        .24107E-03   -.95946    
  27  Prefactor     .86467        .18419        .23344E-03   -.97387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38178e-09
Minuit parameter uncertainties:
  1  6.19706
  2  7.65e-06
  3  1.47611e-06
  4  11.7117
  5  5.28371e-05
  6  3.21532
  7  8.2915e-06
  8  3.25165
  9  1.06519e-05
  10  4.30171
  11  4.41307e-06
  12  39.5704
  13  4.00905
  14  1.91609e-06
  15  4.91763
  16  12.6556
  17  9.89983
  18  5.19002
  19  1.92306
  20  70.2892
  21  4.76419e-06
  22  0.667099
  23  1.02321e-05
  24  25.0331
  25  3.52064e-05
  26  0.200274
  27  0.184326
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.916e-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:  8.647e-01  1.843e-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.147e-01  2.003e-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: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/776721/likelihoodResults_629424001_629683201_4FGL_J1446.3+3111_daily_bin1505.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): 102
logL (Free Index) = 5586.21084503
delta logL = -0.000484321820295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5586.21036204
delta logL = -1.33028424898e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11967E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5368       1.0000          .0000       10.000    
     3 'Normalizat'    .91485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86451       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=   5586.210     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      252 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.082        .18142E-01** at limit **
   2  Index         2.0003        7.8468        .50000        .15732E-06
   3  Normalizat    .91469        .79864E-02    .24107E-03    .69088E-04
   4  Prefactor     .86466        .75818E-02    .23344E-03    .75585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00028
  Normalizat = 0.914685
  Prefactor  = 0.864665
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.210     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    329.14        .25766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0003        7.5080        .50000       -.64343    
   3  Normalizat    .91469        .22449E-01    .96429E-05   -.95946    
   4  Prefactor     .86466        .21311E-01    .93374E-05   -.97387    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.1717e-10
Minuit parameter uncertainties:
  1  0.000292866
  2  1067.29
  3  0.022449
  4  0.0213116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776721': 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): 102
logL (Free Index) = 5586.21035962
delta logL = 1.08379754238e-06

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.929e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.000e+00  1.067e+03  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:  8.647e-01  2.131e-02  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.147e-01  2.245e-02  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/776721/cmap_HighResolution_629424001_629683201_4FGL_J1446.3+3111_daily_bin1505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-10 09:24:37.765045', job_id='776721', GAL2='0.86', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631291077.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1505' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:24:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 776721: <4FGL_J1446.3+3111_daily_bin1505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1505 221.591 31.1955 629424001 629683201 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 :                                   662.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

