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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin760
RA = 221.591, Dec = 31.1955
tmin = 436320001, tmax = 436579201
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='773435', job_status='RUN', time_executed='2021-09-10 09:01:28.378456', time_epoch_executed='1631289688.38' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773435/ft1_4FGL_J1446.3+3111_daily_bin760.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773435/ft2_4FGL_J1446.3+3111_daily_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773435/ft1_4FGL_J1446.3+3111_daily_bin760.fits outfile=/scratch/kocevski/773435/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin760.fits ra=221.591 dec=31.1955 rad=12.0 tmin=436320001.0 tmax=436579201.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 5.25
user 4.98
sys 0.23

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773435/ft1_filtered_4FGL_J1446.3+3111_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/773435/ft2_4FGL_J1446.3+3111_daily_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/773435/ltcube_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.fits outfile=/scratch/kocevski/773435/expmap_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.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/773435/ltcube_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.fits
.....................!
real 191.27
user 186.06
sys 4.86

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773435/ft1_filtered_4FGL_J1446.3+3111_daily_bin760.fits scfile=/scratch/kocevski/773435/ft2_4FGL_J1446.3+3111_daily_bin760.fits outfile=/scratch/kocevski/773435/cmap_HighResolution_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/773435/ft1_filtered_4FGL_J1446.3+3111_daily_bin760.fits', '/scratch/kocevski/773435/ft2_4FGL_J1446.3+3111_daily_bin760.fits', expMap='/scratch/kocevski/773435/expmap_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.fits', expCube='/scratch/kocevski/773435/ltcube_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/773435/Model_4FGL_J1446.3+3111_daily_bin760.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/773435/ft1_filtered_4FGL_J1446.3+3111_daily_bin760.fits
Spacecraft file(s): /scratch/kocevski/773435/ft2_4FGL_J1446.3+3111_daily_bin760.fits
Exposure map: /scratch/kocevski/773435/expmap_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.fits
Exposure cube: /scratch/kocevski/773435/ltcube_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/773435/Model_4FGL_J1446.3+3111_daily_bin760.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6834.94967979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .79138       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.123       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8472       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.344       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9140       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.782       1.0000         .10000E-03   10000.    
    13 'norm      '    15.390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.449       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0524       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70451       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1991       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4622       1.0000         .10000E-03   10000.    
    22 'norm      '    8.3722       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.0939       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1931       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99439       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6834.941     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3303 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6476         .0000    ** at limit **
   2  Prefactor     .10013E-03    10.382         .0000    ** at limit **
   3  norm          .79616        7.5099         .0000        .37138E-01
   4  Prefactor     12.132        34.695         .0000       -.85040E-03
   5  Prefactor     2.8550        218.55         .0000       -.99795E-03
   6  Prefactor     .10000E-03    1.2437         .0000    ** at limit **
   7  norm          21.345        19.027         .0000        .11299E-02
   8  norm          2.9595        2.3992         .0000        .39690E-03
   9  Prefactor     .10005E-03    22.321         .0000    ** at limit **
  10  norm          3.9133        3.6783         .0000       -.74345E-02
  11  norm          .10000E-03    2.5871         .0000    ** at limit **
  12  Prefactor     32.782        34.219         .0000        .41449E-03
  13  norm          15.390        6.7777         .0000        .11875E-03
  14  Prefactor     29.450        37.751         .0000        .37709E-03
  15  norm          5.0510        7.1063         .0000        .47129E-03
  16  Prefactor     .74698        13.084         .0000       -.14883E-02
  17  Prefactor     3.1980        6.9154         .0000        .76406E-03
  18  Prefactor     .10000E-03    2.2005         .0000    ** at limit **
  19  norm          .10000E-03    .56913         .0000    ** at limit **
  20  Prefactor     .10019E-03    30.767         .0000    ** at limit **
  21  Prefactor     3.4620        7.4484         .0000        .49135E-03
  22  norm          8.3719        1.8639         .0000       -.13106E-03
  23  Prefactor     .10003E-03    8.0254         .0000    ** at limit **
  24  Prefactor     .10026E-03    15.558         .0000    ** at limit **
  25  Prefactor     8.0902        23.979         .0000        .97337E-03
  26  Normalizat    1.1930        .20508         .0000       -.18659E-04
  27  Prefactor     .99449        .17217         .0000       -.16410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100128
  norm       = 0.796163
  Prefactor  = 12.1317
  Prefactor  = 2.85502
  Prefactor  = 0.0001
  norm       = 21.3445
  norm       = 2.95949
  Prefactor  = 0.000100047
  norm       = 3.91334
  norm       = 0.0001
  Prefactor  = 32.7819
  norm       = 15.3903
  Prefactor  = 29.4497
  norm       = 5.05104
  Prefactor  = 0.746983
  Prefactor  = 3.19798
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100191
  Prefactor  = 3.46202
  norm       = 8.37194
  Prefactor  = 0.00010003
  Prefactor  = 0.00010026
  Prefactor  = 8.0902
  Normalizat = 1.193
  Prefactor  = 0.994494
 **********
 **   18 **HESSE 
 **********

 FCN=   6834.941     FROM HESSE     STATUS=OK           482 CALLS     3785 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10013E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .79616        7.6335        .21040E-02   -1.5530    
   4  Prefactor     12.132        29.376        .11505E-03   -1.5011    
   5  Prefactor     2.8550        156.03        .24096E-03   -1.5370    
   6  Prefactor     .10000E-03    1.2467        .90017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.345        18.944        .86697E-04   -1.4784    
   8  norm          2.9595        2.3932        .11142E-03   -1.5364    
   9  Prefactor     .10005E-03    22.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9133        3.6738        .14743E-03   -1.5312    
  11  norm          .10000E-03    2.5978        .12984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.782        34.201        .69985E-04   -1.4562    
  13  norm          15.390        6.7848        .10209E-03   -1.4923    
  14  Prefactor     29.450        37.849        .73829E-04   -1.4622    
  15  norm          5.0510        7.1118        .17889E-03   -1.5258    
  16  Prefactor     .74698        107.32        .53261E-02   -1.5535    
  17  Prefactor     3.1980        6.8672        .22653E-03   -1.5350    
  18  Prefactor     .10000E-03    2.2028        .11976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .57441        .60752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10019E-03    30.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4620        7.4374        .21734E-03   -1.5336    
  22  norm          8.3719        1.8673        .49984E-04   -1.5129    
  23  Prefactor     .10003E-03    8.0812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10026E-03    15.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.0902        23.976        .14093E-03   -1.5139    
  26  Normalizat    1.1930        .24530        .27157E-03   -.86819    
  27  Prefactor     .99449        .20519        .25933E-03   -.92913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5704e-07
Minuit parameter uncertainties:
  1  0.00013401
  2  0.00230782
  3  4.93103
  4  29.4112
  5  42.3276
  6  2.88603e-07
  7  18.9489
  8  2.39326
  9  0.00204276
  10  3.67401
  11  3.74616e-08
  12  34.2219
  13  6.78511
  14  37.8796
  15  7.11303
  16  17.9388
  17  6.86886
  18  4.5452e-06
  19  1.66134e-07
  20  0.00485039
  21  7.43942
  22  1.86729
  23  0.000990499
  24  0.00402603
  25  24.0043
  26  0.245535
  27  0.205354
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.945e+01  3.788e+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:  9.945e-01  2.054e-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:  1.193e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/773435/likelihoodResults_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.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) = 6834.61145555
delta logL = 0.32905533945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6834.59774569
delta logL = 0.342765200948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.474       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5593       1.0000          .0000       10.000    
     3 'Normalizat'    1.1464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0226       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=   6834.598     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      256 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.412        314.28        .27280E-02    .15913E-03
   2  Index         3.5617        6.7184        .14091        .17207E-03
   3  Normalizat    1.1465        .69454E-01    .62458E-01    .26592E-04
   4  Prefactor     1.0224        .58195E-01    .41895E-01   -.32168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4115
  Index      = 3.56168
  Normalizat = 1.14654
  Prefactor  = 1.02244
 **********
 **   18 **HESSE 
 **********

 FCN=   6834.598     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.412        190.84        .10912E-03   -1.4975    
   2  Index         3.5617        6.6989        .76795E-02   -.29179    
   3  Normalizat    1.1465        .24031        .27626E-03   -.88271    
   4  Prefactor     1.0224        .20893        .25621E-03   -.91985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19405e-10
Minuit parameter uncertainties:
  1  101.576
  2  4.89558
  3  0.24054
  4  0.209095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773435': 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) = 6834.5977433
delta logL = 0.342767585318

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.341e+01  1.016e+02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.562e+00  4.896e+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.022e+00  2.091e-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:  1.147e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 221.591 31.195
Photon Index (Free Index): 3.56 +/- 4.90
Photon Flux (Free Index): 6.66e-08 +/- 6.74e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/773435/cmap_HighResolution_436320001_436579201_4FGL_J1446.3+3111_daily_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='3.43e-01', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-09-10 09:14:06.178402', photon_index_error2='4.90', photon_index2='3.56', ts='0.80', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.36e-05', EG='1.19', time_epoch_completed='1631290446.18', return_code='0', job_id='773435', GAL2='1.02', EG2='1.15', return_code2='0', photon_flux_error2='6.74e-08', ts2='1.56', photon_index='2.56' WHERE bin_id='760' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:14:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 773435: <4FGL_J1446.3+3111_daily_bin760> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin760 221.591 31.1955 436320001 436579201 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 :                                   756.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

