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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin609
RA = 221.591, Dec = 31.1955
tmin = 397180801, tmax = 397440001
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='772155', job_status='RUN', time_executed='2021-09-10 08:56:39.180382', time_epoch_executed='1631289399.18' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772155

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772155/ft1_4FGL_J1446.3+3111_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772155/ft2_4FGL_J1446.3+3111_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772155/ft1_4FGL_J1446.3+3111_daily_bin609.fits outfile=/scratch/kocevski/772155/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin609.fits ra=221.591 dec=31.1955 rad=12.0 tmin=397180801.0 tmax=397440001.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.96
user 3.74
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772155/ft1_filtered_4FGL_J1446.3+3111_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/772155/ft2_4FGL_J1446.3+3111_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/772155/ltcube_397180801_397440001_4FGL_J1446.3+3111_daily_bin609.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/772155/ft2_4FGL_J1446.3+3111_daily_bin609.fits
.....................!
real 10.97
user 10.64
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772155/ft1_filtered_4FGL_J1446.3+3111_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/772155/ft2_4FGL_J1446.3+3111_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/772155/ltcube_397180801_397440001_4FGL_J1446.3+3111_daily_bin609.fits outfile=/scratch/kocevski/772155/expmap_397180801_397440001_4FGL_J1446.3+3111_daily_bin609.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/772155/ltcube_397180801_397440001_4FGL_J1446.3+3111_daily_bin609.fits
.....................!
real 190.59
user 186.08
sys 4.10

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/772155/ft1_filtered_4FGL_J1446.3+3111_daily_bin609.fits scfile=/scratch/kocevski/772155/ft2_4FGL_J1446.3+3111_daily_bin609.fits outfile=/scratch/kocevski/772155/cmap_397180801_397440001_4FGL_J1446.3+3111_daily_bin609.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772155/ft1_filtered_4FGL_J1446.3+3111_daily_bin609.fits scfile=/scratch/kocevski/772155/ft2_4FGL_J1446.3+3111_daily_bin609.fits outfile=/scratch/kocevski/772155/cmap_HighResolution_397180801_397440001_4FGL_J1446.3+3111_daily_bin609.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.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5677       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38338       1.0000         .10000E-03   10000.    
     3 'norm      '    .10230E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.744       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.025       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.5238       1.0000         .10000E-03   10000.    
     8 'norm      '    8.0896       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.8897       1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2952       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6895       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.600       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5752       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62160       1.0000         .10000E-03   10000.    
    22 'norm      '    13.980       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89876       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0391       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=   5746.419     FROM MIGRAD    STATUS=CONVERGED   1139 CALLS     4246 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5652        7.6145        .64778E-03    .40383E-04
   2  Prefactor     .36341        163.27        .56078E-02    .52594E-04
   3  norm          .10000E-03    2.8730        .24578E-03** at limit **
   4  Prefactor     13.770        41.949        .10804E-03    .17225E-03
   5  Prefactor     23.020        46.817        .83477E-04    .16397E-03
   6  Prefactor     .10000E-03    2.5439        .23253E-03** at limit **
   7  norm          5.5164        13.791        .17095E-03    .29661E-04
   8  norm          8.0898        3.5449        .91196E-04   -.24040E-03
   9  Prefactor     .10000E-03    14.293        .18142E-02** at limit **
  10  norm          4.8896        4.3056        .70897E-03    .13531E-03
  11  norm          .10000E-03    7.3979        .36285E-03** at limit **
  12  Prefactor     .10000E-03    20.215        .18142E-02** at limit **
  13  norm          .10000E-03    4.0788        .29345E-03** at limit **
  14  Prefactor     .10000E-03    26.500        .18142E-02** at limit **
  15  norm          4.2951        5.1223        .91451E-03   -.45984E-04
  16  Prefactor     .10000E-03    4.3853        .15496E-02** at limit **
  17  Prefactor     3.6881        8.1818        .21026E-03    .87592E-05
  18  Prefactor     16.601        9.8619        .98302E-04    .34695E-06
  19  norm          1.5753        1.6952        .89650E-04    .55797E-04
  20  Prefactor     .10000E-03    17.866        .18142E-02** at limit **
  21  Prefactor     .62343        12.643        .34235E-02    .30152E-03
  22  norm          13.980        2.1995        .42659E-04   -.12979E-03
  23  Prefactor     .10000E-03    4.8776        .16317E-02** at limit **
  24  Prefactor     .10000E-03    16.679        .18142E-02** at limit **
  25  Prefactor     .10000E-03    7.3497        .18142E-02** at limit **
  26  Normalizat    .89877        .21068        .26761E-03    .72984E-04
  27  Prefactor     1.0391        .19921        .24250E-03   -.21097E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.56521
  Prefactor  = 0.363407
  norm       = 0.0001
  Prefactor  = 13.7703
  Prefactor  = 23.0195
  Prefactor  = 0.0001
  norm       = 5.51637
  norm       = 8.08982
  Prefactor  = 0.0001
  norm       = 4.88963
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.29513
  Prefactor  = 0.0001
  Prefactor  = 3.68811
  Prefactor  = 16.601
  norm       = 1.57532
  Prefactor  = 0.0001
  Prefactor  = 0.623429
  norm       = 13.9802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.898766
  Prefactor  = 1.03912
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.419     FROM HESSE     STATUS=OK           470 CALLS     4716 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5652        7.6136        .25911E-04   -1.5089    
   2  Prefactor     .36341        161.86        .22431E-03   -1.5587    
   3  norm          .10000E-03    2.8731        .49157E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.770        41.417        .43217E-05   -1.4966    
   5  Prefactor     23.020        46.676        .33391E-05   -1.4748    
   6  Prefactor     .10000E-03    2.5439        .46506E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.5164        13.777        .68379E-05   -1.5238    
   8  norm          8.0898        3.5447        .18239E-04   -1.5139    
   9  Prefactor     .10000E-03    14.295        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8896        4.3052        .28359E-04   -1.5266    
  11  norm          .10000E-03    7.3983        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.0789        .58691E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2951        5.1222        .36580E-04   -1.5293    
  16  Prefactor     .10000E-03    4.3854        .30992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6881        8.1783        .84105E-05   -1.5324    
  18  Prefactor     16.601        9.8615        .39321E-05   -1.4893    
  19  norm          1.5753        1.6946        .35860E-05   -1.5457    
  20  Prefactor     .10000E-03    17.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .62343        12.626        .13694E-03   -1.5550    
  22  norm          13.980        2.1994        .17064E-05   -1.4960    
  23  Prefactor     .10000E-03    4.8780        .32634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.680        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.3498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89877        .21073        .10704E-04   -.96504    
  27  Prefactor     1.0391        .19899        .96999E-05   -.91437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41828e-10
Minuit parameter uncertainties:
  1  7.61438
  2  15.3789
  3  4.90131e-05
  4  41.5039
  5  46.7506
  6  6.05954e-06
  7  13.7853
  8  3.54476
  9  0.000111577
  10  4.3055
  11  6.67723e-06
  12  9.38505e-05
  13  8.06981e-06
  14  0.000259267
  15  5.12275
  16  1.54872e-05
  17  8.18077
  18  9.86249
  19  1.6946
  20  0.00011469
  21  5.61207
  22  2.19938
  23  7.2186e-06
  24  7.92173e-05
  25  9.00889e-06
  26  0.210921
  27  0.199133
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.593e-04  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.039e+00  1.991e-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:  8.988e-01  2.109e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772155/likelihoodResults_397180801_397440001_4FGL_J1446.3+3111_daily_bin609.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) = 5746.41939972
delta logL = -0.00017976766776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5746.41922005
delta logL = -9.49385139393e-08

Fit tolerance = 1e-08

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

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

 FCN=   5746.419     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      227 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7241.8        .90712E-02** at limit **
   2  Index         2.4809        5.2411        .50000       -.29479E-05
   3  Normalizat    .89876        .10954        .44886E-01    .19676E-04
   4  Prefactor     1.0391        .10560        .40594E-01    .10522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48086
  Normalizat = 0.898765
  Prefactor  = 1.03912
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.419     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4809        6.2342        .50000       -.52802    
   3  Normalizat    .89876        .19420        .26761E-03   -.96504    
   4  Prefactor     1.0391        .18892        .24250E-03   -.91437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0208e-11
Minuit parameter uncertainties:
  1  1.19135e-05
  2  4.80794
  3  0.194356
  4  0.189039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772155': 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) = 5746.41922
delta logL = -5.09407982463e-08

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.191e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.481e+00  4.808e+00  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.039e+00  1.890e-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:  8.988e-01  1.944e-01  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/772155/cmap_HighResolution_397180801_397440001_4FGL_J1446.3+3111_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-10 09:09:09.478612', job_id='772155', GAL2='1.04', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631290149.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-5.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='609' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:09:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 772155: <4FGL_J1446.3+3111_daily_bin609> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin609> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 08:56:25 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:56:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 08:56:27 2021
Terminated at Fri Sep 10 09:09:10 2021
Results reported at Fri Sep 10 09:09:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin609 221.591 31.1955 397180801 397440001 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 :                                   747.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            765 sec.

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

