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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1090
RA = 221.591, Dec = 31.1955
tmin = 521856001, tmax = 522115201
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='774975', job_status='RUN', time_executed='2021-09-10 09:09:20.437677', time_epoch_executed='1631290160.44' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774975

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774975/ft1_4FGL_J1446.3+3111_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774975/ft2_4FGL_J1446.3+3111_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774975/ft1_4FGL_J1446.3+3111_daily_bin1090.fits outfile=/scratch/kocevski/774975/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1090.fits ra=221.591 dec=31.1955 rad=12.0 tmin=521856001.0 tmax=522115201.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.74
user 3.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774975/ft1_filtered_4FGL_J1446.3+3111_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/774975/ft2_4FGL_J1446.3+3111_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/774975/ltcube_521856001_522115201_4FGL_J1446.3+3111_daily_bin1090.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/774975/ft2_4FGL_J1446.3+3111_daily_bin1090.fits
.....................!
real 11.68
user 11.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774975/ft1_filtered_4FGL_J1446.3+3111_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/774975/ft2_4FGL_J1446.3+3111_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/774975/ltcube_521856001_522115201_4FGL_J1446.3+3111_daily_bin1090.fits outfile=/scratch/kocevski/774975/expmap_521856001_522115201_4FGL_J1446.3+3111_daily_bin1090.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/774975/ltcube_521856001_522115201_4FGL_J1446.3+3111_daily_bin1090.fits
.....................!
real 189.24
user 184.75
sys 4.09

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/774975/ft1_filtered_4FGL_J1446.3+3111_daily_bin1090.fits scfile=/scratch/kocevski/774975/ft2_4FGL_J1446.3+3111_daily_bin1090.fits outfile=/scratch/kocevski/774975/cmap_521856001_522115201_4FGL_J1446.3+3111_daily_bin1090.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774975/ft1_filtered_4FGL_J1446.3+3111_daily_bin1090.fits scfile=/scratch/kocevski/774975/ft2_4FGL_J1446.3+3111_daily_bin1090.fits outfile=/scratch/kocevski/774975/cmap_HighResolution_521856001_522115201_4FGL_J1446.3+3111_daily_bin1090.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.304       1.0000         .10000E-03   10000.    
     8 'norm      '    10.322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    67.261       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3181       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.380       1.0000         .10000E-03   10000.    
    13 'norm      '    12.087       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26706E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0151       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.687       1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4111       1.0000         .10000E-03   10000.    
    22 'norm      '    8.2275       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2626       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .64086       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=   6155.574     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3314 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3588        .19618E-07** at limit **
   2  Prefactor     .10000E-03    7.3541       -.10289E-07** at limit **
   3  norm          .10000E-03    2.5170        .80250E-07** at limit **
   4  Prefactor     .10000E-03    4.8162        .10481E-07** at limit **
   5  Prefactor     .10000E-03    6.7113        .12852E-06** at limit **
   6  Prefactor     .10000E-03    1.9857        .57427E-07** at limit **
   7  norm          10.304        12.468       -.13341E-05    .15212E-05
   8  norm          10.321        3.6040        .76561E-07   -.63731E-06
   9  Prefactor     67.246        41.325        .10567E-04    .73959E-05
  10  norm          2.3176        2.2391        .52477E-07    .65533E-04
  11  norm          3.4831        8.4280       -.53351E-05   -.32163E-03
  12  Prefactor     82.397        63.787       -.14181E-05    .18506E-04
  13  norm          12.086        5.6851        .17513E-06   -.59743E-04
  14  Prefactor     .10248E-03    53.877        .21400E-06** at limit **
  15  norm          5.6899        8.2037       -.21026E-05   -.87098E-04
  16  Prefactor     .10000E-03    15.758       -.12652E-07** at limit **
  17  Prefactor     6.0158        5.5012        .43911E-05    .91553E-04
  18  Prefactor     16.684        9.8339        .88684E-06   -.20665E-04
  19  norm          .10000E-03    .69608       -.87339E-07** at limit **
  20  Prefactor     .10000E-03    35.102       -.47862E-07** at limit **
  21  Prefactor     5.4068        10.110        .35507E-05   -.14579E-03
  22  norm          8.2282        1.8691       -.50910E-08   -.13330E-03
  23  Prefactor     .10000E-03    5.9393       -.44349E-07** at limit **
  24  Prefactor     .10000E-03    11.741        .23206E-06** at limit **
  25  Prefactor     .10000E-03    144.46       -.53221E-06** at limit **
  26  Normalizat    1.2626        .18502       -.98702E-06    .20803E-04
  27  Prefactor     .64111        .15964       -.70649E-06   -.54012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3036
  norm       = 10.321
  Prefactor  = 67.2456
  norm       = 2.31759
  norm       = 3.48313
  Prefactor  = 82.3971
  norm       = 12.0858
  Prefactor  = 0.000102477
  norm       = 5.68989
  Prefactor  = 0.0001
  Prefactor  = 6.01578
  Prefactor  = 16.6841
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.40685
  norm       = 8.22821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26256
  Prefactor  = 0.641108
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.574     FROM HESSE     STATUS=OK           496 CALLS     3810 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3654        .11767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5734        .12150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8205        .16813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0058        .10789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.304        12.452        .12483E-03   -1.5066    
   8  norm          10.321        3.6050        .84716E-04   -1.5065    
   9  Prefactor     67.246        41.339        .48939E-04   -1.4066    
  10  norm          2.3176        2.2431        .11224E-03   -1.5403    
  11  norm          3.4831        8.5194        .21655E-03   -1.5335    
  12  Prefactor     82.397        63.526        .44254E-04   -1.3890    
  13  norm          12.086        5.6844        .11522E-03   -1.5013    
  14  Prefactor     .10248E-03    48.729        .13801       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6899        8.1820        .16837E-03   -1.5231    
  16  Prefactor     .10000E-03    15.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0158        5.5098        .16371E-03   -1.5217    
  18  Prefactor     16.684        9.8394        .98045E-04   -1.4891    
  19  norm          .10000E-03    .71396        .12768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4068        10.086        .17275E-03   -1.5243    
  22  norm          8.2282        1.8695        .48627E-04   -1.5134    
  23  Prefactor     .10000E-03    5.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    150.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2626        .21854        .23941E-03   -.84691    
  27  Prefactor     .64111        .18653        .28531E-03   -1.0588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4215e-10
Minuit parameter uncertainties:
  1  2.8698e-06
  2  3.5703e-06
  3  1.36438e-05
  4  4.9193e-06
  5  3.88894e-06
  6  7.50025e-06
  7  12.4553
  8  3.60511
  9  41.3564
  10  2.24322
  11  8.52235
  12  63.5784
  13  5.68461
  14  0.0219905
  15  8.1836
  16  9.88073e-05
  17  5.5103
  18  9.84036
  19  7.36753e-06
  20  1.01564e-05
  21  10.0893
  22  1.86954
  23  5.79952e-07
  24  1.56608e-07
  25  0.000316878
  26  0.218703
  27  0.18671
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.025e-04  2.199e-02  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:  6.411e-01  1.867e-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.263e+00  2.187e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774975/likelihoodResults_521856001_522115201_4FGL_J1446.3+3111_daily_bin1090.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) = 6155.57447406
delta logL = -4.51886444353e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6155.57447405
delta logL = -4.5169290388e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5565       1.0000          .0000       10.000    
     3 'Normalizat'    1.2626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64112       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=   6154.511     FROM MIGRAD    STATUS=CONVERGED    243 CALLS      427 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43807E-01    .54204        .28857E-02    .38560E-02
   2  Index         6.9506        2.8132        .15711        .13297E-03
   3  Normalizat    1.1646        .43442E-01    .56024E-01    .14411E-04
   4  Prefactor     .69765        .38387E-01    .62105E-01    .69186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0438066
  Index      = 6.95062
  Normalizat = 1.16464
  Prefactor  = 0.697646
 **********
 **   18 **HESSE 
 **********

 FCN=   6154.511     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      462 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43807E-01    1.4468        .13162E-03   -1.5666    
   2  Index         6.9506        7.9560        .58760E-02    .40077    
   3  Normalizat    1.1646        .16301        .24775E-03   -.87703    
   4  Prefactor     .69765        .13975        .27473E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.0123e-10
Minuit parameter uncertainties:
  1  0.502942
  2  6.05533
  3  0.163078
  4  0.139825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774975': 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) = 6154.51130265
delta logL = 1.06316688668

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  4.381e-02  5.029e-01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  6.951e+00  6.055e+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:  6.976e-01  1.398e-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.165e+00  1.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 221.591 31.195
Photon Index (Free Index): 6.95 +/- 6.06
Photon Flux (Free Index): 8.49e-08 +/- 7.07e-08
Energy Flux (Free Index): 1.02e-05 +/- 9.49e-06

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/774975/cmap_HighResolution_521856001_522115201_4FGL_J1446.3+3111_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='1.06e+00', photon_flux2='8.49e-08', job_status='DONE', time_completed='2021-09-10 09:21:08.311184', photon_index_error2='6.06', photon_index2='6.95', ts='-0.00', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='9.49e-06', EG='1.26', time_epoch_completed='1631290868.31', return_code='0', job_id='774975', GAL2='0.70', EG2='1.16', return_code2='102', photon_flux_error2='7.07e-08', ts2='2.29', photon_index='2.56' WHERE bin_id='1090' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:21:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 774975: <4FGL_J1446.3+3111_daily_bin1090> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1090 221.591 31.1955 521856001 522115201 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 :                                   705.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

