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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1125
RA = 221.591, Dec = 31.1955
tmin = 530928001, tmax = 531187201
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='775032', job_status='RUN', time_executed='2021-09-10 09:08:39.114244', time_epoch_executed='1631290119.11' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775032/ft1_4FGL_J1446.3+3111_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775032/ft2_4FGL_J1446.3+3111_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775032/ft1_4FGL_J1446.3+3111_daily_bin1125.fits outfile=/scratch/kocevski/775032/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1125.fits ra=221.591 dec=31.1955 rad=12.0 tmin=530928001.0 tmax=531187201.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.63
user 3.42
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775032/ft1_filtered_4FGL_J1446.3+3111_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/775032/ft2_4FGL_J1446.3+3111_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/775032/ltcube_530928001_531187201_4FGL_J1446.3+3111_daily_bin1125.fits outfile=/scratch/kocevski/775032/expmap_530928001_531187201_4FGL_J1446.3+3111_daily_bin1125.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/775032/ltcube_530928001_531187201_4FGL_J1446.3+3111_daily_bin1125.fits
.....................!
real 189.82
user 184.97
sys 4.40

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/775032/ft1_filtered_4FGL_J1446.3+3111_daily_bin1125.fits scfile=/scratch/kocevski/775032/ft2_4FGL_J1446.3+3111_daily_bin1125.fits outfile=/scratch/kocevski/775032/cmap_530928001_531187201_4FGL_J1446.3+3111_daily_bin1125.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=221.591 yref=31.1955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775032/ft1_filtered_4FGL_J1446.3+3111_daily_bin1125.fits scfile=/scratch/kocevski/775032/ft2_4FGL_J1446.3+3111_daily_bin1125.fits outfile=/scratch/kocevski/775032/cmap_HighResolution_530928001_531187201_4FGL_J1446.3+3111_daily_bin1125.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/775032/ft1_filtered_4FGL_J1446.3+3111_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/775032/ft2_4FGL_J1446.3+3111_daily_bin1125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775032/Model_4FGL_J1446.3+3111_daily_bin1125.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/775032/ft1_filtered_4FGL_J1446.3+3111_daily_bin1125.fits.....................!
real 48.96
user 47.60
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9159       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.398       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.6356       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.565       1.0000         .10000E-03   10000.    
    10 'norm      '    13.332       1.0000         .10000E-03   10000.    
    11 'norm      '    11.617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6784       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.127       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6724       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.218       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3231       1.0000         .10000E-03   10000.    
    22 'norm      '    4.9382       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .50088       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.866       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96661       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83846       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=   6215.945     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3257 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9151        6.3314        .18739E-06   -.36830E-04
   2  Prefactor     .10000E-03    8.0248        .14624E-06** at limit **
   3  norm          .10000E-03    2.2481        .21591E-07** at limit **
   4  Prefactor     .10000E-03    7.0077       -.92107E-07** at limit **
   5  Prefactor     .10000E-03    27.998       -.65005E-06** at limit **
   6  Prefactor     23.397        6.1351        .23666E-07    .16829E-04
   7  norm          .10000E-03    5.2306       -.11697E-07** at limit **
   8  norm          9.6357        3.3456        .32082E-07   -.32778E-05
   9  Prefactor     16.556        30.047       -.62012E-06   -.86787E-05
  10  norm          13.332        5.1738        .61298E-07   -.18427E-04
  11  norm          11.616        8.8442        .66769E-07    .25170E-04
  12  Prefactor     .10000E-03    22.768       -.55120E-06** at limit **
  13  norm          5.6783        4.1991        .80278E-07   -.31337E-04
  14  Prefactor     .10000E-03    19.046        .70049E-06** at limit **
  15  norm          15.128        11.551        .30270E-07    .34910E-05
  16  Prefactor     6.6729        11.797        .12102E-06    .77236E-05
  17  Prefactor     .10000E-03    4.6239       -.21362E-07** at limit **
  18  Prefactor     .10000E-03    10.141       -.15037E-06** at limit **
  19  norm          .10000E-03    .51510       -.48812E-07** at limit **
  20  Prefactor     28.208        63.384       -.92306E-06   -.49062E-05
  21  Prefactor     5.3234        10.218        .12380E-06    .85590E-05
  22  norm          4.9424        1.7263       -.74739E-06    .11053E-02
  23  Prefactor     .41839        11.774        .14402E-05    .55510E-03
  24  Prefactor     16.901        30.897        .10352E-05    .14431E-03
  25  Prefactor     .10000E-03    53.228        .81430E-06** at limit **
  26  Normalizat    .96678        .18775        .27638E-06    .11941E-04
  27  Prefactor     .83829        .16329       -.11329E-05    .12312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91512
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3969
  norm       = 0.0001
  norm       = 9.6357
  Prefactor  = 16.5556
  norm       = 13.3319
  norm       = 11.6162
  Prefactor  = 0.0001
  norm       = 5.67829
  Prefactor  = 0.0001
  norm       = 15.1279
  Prefactor  = 6.67295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.2078
  Prefactor  = 5.32337
  norm       = 4.94235
  Prefactor  = 0.418394
  Prefactor  = 16.9011
  Prefactor  = 0.0001
  Normalizat = 0.96678
  Prefactor  = 0.838287
 **********
 **   18 **HESSE 
 **********

 FCN=   6215.945     FROM HESSE     STATUS=OK           492 CALLS     3749 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9151        6.3510        .18141E-03   -1.5265    
   2  Prefactor     .10000E-03    8.0371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2786        .11540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.397        6.1652        .82809E-04   -1.4740    
   7  norm          .10000E-03    5.2326        .17610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.6357        3.3466        .82097E-04   -1.5087    
   9  Prefactor     16.556        30.165        .98406E-04   -1.4894    
  10  norm          13.332        5.1751        .10720E-03   -1.4978    
  11  norm          11.616        8.8585        .11753E-03   -1.5026    
  12  Prefactor     .10000E-03    22.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6783        4.1986        .13397E-03   -1.5231    
  14  Prefactor     .10000E-03    19.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.128        11.545        .10298E-03   -1.4930    
  16  Prefactor     6.6729        11.794        .15534E-03   -1.5191    
  17  Prefactor     .10000E-03    4.6807        .16548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .52086        .55150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.208        63.428        .75419E-04   -1.4645    
  21  Prefactor     5.3234        10.226        .17420E-03   -1.5246    
  22  norm          4.9424        2.1154        .53819E-04   -1.5263    
  23  Prefactor     .41839        103.36        .43140E-02   -1.5579    
  24  Prefactor     16.901        31.952        .97525E-04   -1.4886    
  25  Prefactor     .10000E-03    53.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .96678        .21515        .26344E-03   -.94152    
  27  Prefactor     .83829        .18515        .25316E-03   -.98332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32028e-08
Minuit parameter uncertainties:
  1  6.35187
  2  9.71925e-06
  3  2.66669e-06
  4  4.1458e-06
  5  3.21846e-05
  6  6.16535
  7  1.58736e-06
  8  3.34662
  9  30.1931
  10  5.17526
  11  8.85954
  12  2.4132e-05
  13  4.19879
  14  5.33366e-05
  15  11.5467
  16  11.7985
  17  8.60863e-06
  18  2.52678e-05
  19  2.72017e-06
  20  63.5797
  21  10.2293
  22  2.1154
  23  13.174
  24  31.9841
  25  0.000196969
  26  0.215342
  27  0.185289
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.334e-05  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.383e-01  1.853e-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.668e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/775032/likelihoodResults_530928001_531187201_4FGL_J1446.3+3111_daily_bin1125.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) = 6215.94511931
delta logL = -0.000249339476795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6215.94487122
delta logL = -1.24459529616e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3464       1.0000          .0000       10.000    
     3 'Normalizat'    .96677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83829       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=   6215.945     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10666E-03    6.0696        .18142E-01** at limit **
   2  Index         3.1054        6.2543        .50000        .88980E-05
   3  Normalizat    .96678        .28055E-02    .26344E-03    .44882E-04
   4  Prefactor     .83829        .25416E-02    .25316E-03    .24834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106658
  Index      = 3.10543
  Normalizat = 0.966781
  Prefactor  = 0.838286
 **********
 **   18 **HESSE 
 **********

 FCN=   6215.945     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10666E-03    861.14        .60765E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1054        5.0395        .50000       -.38862    
   3  Normalizat    .96678        .35479E-01    .10537E-04   -.94152    
   4  Prefactor     .83829        .32134E-01    .10126E-04   -.98332    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.19534e-08
Minuit parameter uncertainties:
  1  0.153704
  2  2453.02
  3  0.0354795
  4  0.0321345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775032': 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) = 6215.94487066
delta logL = -6.86470229994e-07

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.067e-04  1.537e-01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.105e+00  2.453e+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.383e-01  3.213e-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.668e-01  3.548e-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/775032/cmap_HighResolution_530928001_531187201_4FGL_J1446.3+3111_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-10 09:20:16.051346', job_id='775032', GAL2='0.84', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631290816.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-6.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1125' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:20:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 775032: <4FGL_J1446.3+3111_daily_bin1125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1125 221.591 31.1955 530928001 531187201 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 :                                   688.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

