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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1588
RA = 221.591, Dec = 31.1955
tmin = 650937601, tmax = 651196801
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='776846', job_status='RUN', time_executed='2021-09-10 09:13:57.046614', time_epoch_executed='1631290437.05' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776846/ft1_4FGL_J1446.3+3111_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776846/ft2_4FGL_J1446.3+3111_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776846/ft1_4FGL_J1446.3+3111_daily_bin1588.fits outfile=/scratch/kocevski/776846/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1588.fits ra=221.591 dec=31.1955 rad=12.0 tmin=650937601.0 tmax=651196801.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.41
sys 0.20

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776846/ft1_filtered_4FGL_J1446.3+3111_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/776846/ft2_4FGL_J1446.3+3111_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/776846/ltcube_650937601_651196801_4FGL_J1446.3+3111_daily_bin1588.fits outfile=/scratch/kocevski/776846/expmap_650937601_651196801_4FGL_J1446.3+3111_daily_bin1588.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/776846/ltcube_650937601_651196801_4FGL_J1446.3+3111_daily_bin1588.fits
.....................!
real 190.40
user 185.27
sys 4.74

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/776846/ft1_filtered_4FGL_J1446.3+3111_daily_bin1588.fits scfile=/scratch/kocevski/776846/ft2_4FGL_J1446.3+3111_daily_bin1588.fits outfile=/scratch/kocevski/776846/cmap_650937601_651196801_4FGL_J1446.3+3111_daily_bin1588.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776846/ft1_filtered_4FGL_J1446.3+3111_daily_bin1588.fits scfile=/scratch/kocevski/776846/ft2_4FGL_J1446.3+3111_daily_bin1588.fits outfile=/scratch/kocevski/776846/cmap_HighResolution_650937601_651196801_4FGL_J1446.3+3111_daily_bin1588.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .11114E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7242       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4088       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0269       1.0000         .10000E-03   10000.    
     8 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.9041       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.670       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5544       1.0000         .10000E-03   10000.    
    19 'norm      '    .89268       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6770       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3717       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95818       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1751       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=   6049.443     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     2884 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8141        .66456E-06** at limit **
   2  Prefactor     .10000E-03    11.029        .18707E-05** at limit **
   3  norm          .13005E-01    2.1454       -.13168E-06   -.57098E-03
   4  Prefactor     7.7103        14.259        .44376E-05   -.11685E-03
   5  Prefactor     .10000E-03    7.3856       -.30529E-06** at limit **
   6  Prefactor     1.4081        3.5883       -.16496E-06   -.93935E-03
   7  norm          3.0461        17.473        .71679E-05   -.13388E-03
   8  norm          .10002E-03    1.7490       -.18604E-06** at limit **
   9  Prefactor     .10000E-03    12.425       -.30624E-05** at limit **
  10  norm          9.9038        5.6857        .18527E-07   -.10443E-03
  11  norm          .10000E-03    1.5396        .94612E-08** at limit **
  12  Prefactor     .10000E-03    13.966       -.11063E-06** at limit **
  13  norm          10.670        5.5641        .20780E-06   -.27272E-04
  14  Prefactor     .10000E-03    13.869       -.63739E-06** at limit **
  15  norm          .10000E-03    2.6269       -.39574E-07** at limit **
  16  Prefactor     .10000E-03    5.2076       -.10823E-06** at limit **
  17  Prefactor     .10000E-03    3.0811       -.94516E-07** at limit **
  18  Prefactor     7.5541        6.9738        .30913E-06    .39259E-04
  19  norm          .89288        .90594       -.48596E-06   -.15350E-02
  20  Prefactor     1.5547        536.15        .17050E-03   -.12299E-04
  21  Prefactor     .10000E-03    16.834        .18227E-05** at limit **
  22  norm          .10000E-03    .42311       -.30649E-08** at limit **
  23  Prefactor     3.3716        5.1146       -.55975E-06   -.35920E-03
  24  Prefactor     .10000E-03    11.113        .20027E-05** at limit **
  25  Prefactor     .10000E-03    11.435        .91071E-06** at limit **
  26  Normalizat    .95822        .18241       -.30047E-05   -.24024E-03
  27  Prefactor     1.1751        .16889        .48707E-07   -.36510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0130053
  Prefactor  = 7.71027
  Prefactor  = 0.0001
  Prefactor  = 1.40814
  norm       = 3.04613
  norm       = 0.000100019
  Prefactor  = 0.0001
  norm       = 9.90379
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6704
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.55405
  norm       = 0.892879
  Prefactor  = 1.55473
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.3716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.95822
  Prefactor  = 1.17507
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.443     FROM HESSE     STATUS=OK           496 CALLS     3380 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5539        .29399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .13005E-01    4.9947        .37826E-01   -1.5685    
   4  Prefactor     7.7103        14.109        .14428E-03   -1.5153    
   5  Prefactor     .10000E-03    7.3976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4081        3.5654        .22048E-03   -1.5471    
   7  norm          3.0461        16.974        .23325E-03   -1.5359    
   8  norm          .10002E-03    9.7507        .19570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.9038        5.6697        .12733E-03   -1.5078    
  11  norm          .10000E-03    1.5430        .94241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.670        5.5605        .12265E-03   -1.5055    
  14  Prefactor     .10000E-03    13.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6307        .12312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.2211        .17333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.0964        .13329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.5541        6.9765        .14591E-03   -1.5158    
  19  norm          .89288        .91573        .71480E-04   -1.5519    
  20  Prefactor     1.5547        520.71        .32538E-03   -1.5459    
  21  Prefactor     .10000E-03    17.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .93463        .97170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3716        5.0507        .20729E-03   -1.5341    
  24  Prefactor     .10000E-03    11.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95822        .21234        .25827E-03   -.94444    
  27  Prefactor     1.1751        .19844        .22559E-03   -.87102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35348e-09
Minuit parameter uncertainties:
  1  5.26092e-07
  2  7.25585e-05
  3  0.507814
  4  14.1148
  5  7.54183e-05
  6  3.5659
  7  14.3873
  8  0.000867384
  9  6.17055e-06
  10  5.66998
  11  8.61853e-07
  12  9.74936e-07
  13  5.56072
  14  1.58456e-05
  15  6.8337e-07
  16  1.83856e-06
  17  7.12959e-06
  18  6.97725
  19  0.915743
  20  57.4141
  21  7.96755e-05
  22  2.05281e-06
  23  5.05135
  24  7.91908e-06
  25  2.72358e-05
  26  0.212526
  27  0.19857
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.585e-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:  1.175e+00  1.986e-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.582e-01  2.125e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/776846/likelihoodResults_650937601_651196801_4FGL_J1446.3+3111_daily_bin1588.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) = 6049.44363269
delta logL = -0.000343084984706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6049.44328958
delta logL = 1.965509e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5426       1.0000          .0000       10.000    
     3 'Normalizat'    .95822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1751       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=   6049.443     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10258E-03    32.054        .18142E-01** at limit **
   2  Index         2.4146        8.6702        .50000        .63575E-05
   3  Normalizat    .95822        .65443E-02    .25827E-03    .44018E-05
   4  Prefactor     1.1751        .62872E-02    .22559E-03    .43340E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102581
  Index      = 2.4146
  Normalizat = 0.958219
  Prefactor  = 1.17507
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.443     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10258E-03    262.59        .29292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4146        6.1724        .50000       -.54344    
   3  Normalizat    .95822        .19084E-01    .10331E-04   -.94444    
   4  Prefactor     1.1751        .18334E-01    .90236E-05   -.87102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21397e-08
Minuit parameter uncertainties:
  1  0.0522962
  2  1127.26
  3  0.0190838
  4  0.018334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776846': 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) = 6049.44328944
delta logL = 1.63085132954e-07

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.026e-04  5.230e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.415e+00  1.127e+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:  1.175e+00  1.833e-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.582e-01  1.908e-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/776846/cmap_HighResolution_650937601_651196801_4FGL_J1446.3+3111_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-09-10 09:25:04.549578', job_id='776846', GAL2='1.18', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631291104.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1588' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:25:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 776846: <4FGL_J1446.3+3111_daily_bin1588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1588 221.591 31.1955 650937601 651196801 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 :                                   664.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

