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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1031
RA = 221.591, Dec = 31.1955
tmin = 506563201, tmax = 506822401
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='774890', job_status='RUN', time_executed='2021-09-10 09:08:09.806141', time_epoch_executed='1631290089.81' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1031'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774890/ft1_4FGL_J1446.3+3111_daily_bin1031.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774890/ft2_4FGL_J1446.3+3111_daily_bin1031.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774890/ft1_4FGL_J1446.3+3111_daily_bin1031.fits outfile=/scratch/kocevski/774890/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1031.fits ra=221.591 dec=31.1955 rad=12.0 tmin=506563201.0 tmax=506822401.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.38
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774890/ft2_4FGL_J1446.3+3111_daily_bin1031.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/774890/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1031.fits evtable="EVENTS" outfile="/scratch/kocevski/774890/ft1_filtered_4FGL_J1446.3+3111_daily_bin1031.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/774890/ft1_filtered_4FGL_J1446.3+3111_daily_bin1031.fits" evtable="EVENTS" scfile=/scratch/kocevski/774890/ft2_4FGL_J1446.3+3111_daily_bin1031.fits sctable="SC_DATA" outfile=/scratch/kocevski/774890/ltcube_506563201_506822401_4FGL_J1446.3+3111_daily_bin1031.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/774890/ft2_4FGL_J1446.3+3111_daily_bin1031.fits
.....................!
real 12.66
user 12.27
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774890/ft1_filtered_4FGL_J1446.3+3111_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/774890/ft2_4FGL_J1446.3+3111_daily_bin1031.fits sctable="SC_DATA" expcube=/scratch/kocevski/774890/ltcube_506563201_506822401_4FGL_J1446.3+3111_daily_bin1031.fits outfile=/scratch/kocevski/774890/expmap_506563201_506822401_4FGL_J1446.3+3111_daily_bin1031.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/774890/ltcube_506563201_506822401_4FGL_J1446.3+3111_daily_bin1031.fits
.....................!
real 190.70
user 185.26
sys 5.06

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/774890/ft1_filtered_4FGL_J1446.3+3111_daily_bin1031.fits scfile=/scratch/kocevski/774890/ft2_4FGL_J1446.3+3111_daily_bin1031.fits outfile=/scratch/kocevski/774890/cmap_506563201_506822401_4FGL_J1446.3+3111_daily_bin1031.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774890/ft1_filtered_4FGL_J1446.3+3111_daily_bin1031.fits scfile=/scratch/kocevski/774890/ft2_4FGL_J1446.3+3111_daily_bin1031.fits outfile=/scratch/kocevski/774890/cmap_HighResolution_506563201_506822401_4FGL_J1446.3+3111_daily_bin1031.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/774890/ft1_filtered_4FGL_J1446.3+3111_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/774890/ft2_4FGL_J1446.3+3111_daily_bin1031.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/774890/Model_4FGL_J1446.3+3111_daily_bin1031.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/774890/ft1_filtered_4FGL_J1446.3+3111_daily_bin1031.fits.....................!
real 49.22
user 47.91
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .80304E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24246E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .59950       1.0000         .10000E-03   10000.    
     8 'norm      '    4.0528       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.685       1.0000         .10000E-03   10000.    
    10 'norm      '    9.0660       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13195E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.8296       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0428       1.0000         .10000E-03   10000.    
    15 'norm      '    .15198E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3145       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.923       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.278       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20281E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6339       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3670       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16150E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12970E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1858       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81274       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=   6281.024     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3313 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7735        .44677E-06** at limit **
   2  Prefactor     .10000E-03    18.561        .21525E-05** at limit **
   3  norm          .10000E-03    1.8311        .40557E-07** at limit **
   4  Prefactor     .10000E-03    7.9004       -.21279E-07** at limit **
   5  Prefactor     .10000E-03    15.657       -.54263E-05** at limit **
   6  Prefactor     .10000E-03    .79262        .10992E-07** at limit **
   7  norm          .57148        7.9337        .12410E-06   -.25650E-04
   8  norm          4.0524        2.4495        .66796E-07   -.17476E-04
   9  Prefactor     26.711        28.442        .11941E-04    .99714E-05
  10  norm          9.0654        3.9254        .76712E-07   -.35468E-04
  11  norm          1.7676        3.4025       -.63834E-07   -.67940E-04
  12  Prefactor     .10000E-03    12.344       -.14145E-05** at limit **
  13  norm          8.8299        4.6688        .83918E-07   -.55100E-04
  14  Prefactor     2.9290        71.025        .12218E-04   -.88574E-05
  15  norm          .10000E-03    2.6866       -.38324E-09** at limit **
  16  Prefactor     .10000E-03    14.560        .43979E-05** at limit **
  17  Prefactor     6.3102        6.1663        .32517E-06   -.74238E-04
  18  Prefactor     10.902        9.9104        .57193E-06   -.15306E-04
  19  norm          .10000E-03    .63238       -.39582E-07** at limit **
  20  Prefactor     28.504        51.831        .30771E-05   -.48462E-05
  21  Prefactor     .10000E-03    4.3080        .36946E-07** at limit **
  22  norm          2.6336        1.1067        .34952E-07   -.16397E-03
  23  Prefactor     1.3669        1.5093        .51452E-07   -.54201E-03
  24  Prefactor     .10000E-03    19.254        .23872E-05** at limit **
  25  Prefactor     .10000E-03    21.333       -.10369E-05** at limit **
  26  Normalizat    1.1859        .16995       -.22313E-05    .67784E-05
  27  Prefactor     .81274        .15552        .12403E-06   -.17868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.57148
  norm       = 4.0524
  Prefactor  = 26.7114
  norm       = 9.06544
  norm       = 1.76763
  Prefactor  = 0.0001
  norm       = 8.82993
  Prefactor  = 2.92896
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.3102
  Prefactor  = 10.9023
  norm       = 0.0001
  Prefactor  = 28.5038
  Prefactor  = 0.0001
  norm       = 2.63361
  Prefactor  = 1.36694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18587
  Prefactor  = 0.812743
 **********
 **   18 **HESSE 
 **********

 FCN=   6281.024     FROM HESSE     STATUS=OK           494 CALLS     3807 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.787        .29790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.887        .20900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.8840        .20939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.9436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .79747        .68895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .57148        31.791        .43280E-02   -1.5557    
   8  norm          4.0524        2.4508        .93351E-04   -1.5305    
   9  Prefactor     26.711        28.514        .77550E-04   -1.4674    
  10  norm          9.0654        3.9258        .50072E-03   -1.5106    
  11  norm          1.7676        3.3720        .19663E-03   -1.5442    
  12  Prefactor     .10000E-03    12.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.8299        4.6708        .60120E-03   -1.5114    
  14  Prefactor     2.9290        71.520        .23260E-03   -1.5366    
  15  norm          .10000E-03    2.6889        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3102        6.0192        .15974E-03   -1.5206    
  18  Prefactor     10.902        9.9206        .12122E-03   -1.5047    
  19  norm          .10000E-03    .99808        .11754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.504        51.540        .75338E-04   -1.4640    
  21  Prefactor     .10000E-03    4.3714        .16060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6336        1.3284        .51553E-04   -1.5383    
  23  Prefactor     1.3669        17.470        .18656E-02   -1.5474    
  24  Prefactor     .10000E-03    19.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1859        .19706        .22370E-03   -.87041    
  27  Prefactor     .81274        .18202        .25098E-03   -.99260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21957e-08
Minuit parameter uncertainties:
  1  1.81036e-05
  2  1.18921e-05
  3  4.12096e-06
  4  2.27775e-06
  5  3.10118e-05
  6  6.84417e-07
  7  8.52879
  8  2.45082
  9  28.5286
  10  3.92592
  11  3.37233
  12  2.632e-05
  13  4.67101
  14  28.9851
  15  2.31541e-07
  16  3.34479e-05
  17  6.01978
  18  9.92208
  19  5.02703e-06
  20  51.621
  21  9.37737e-06
  22  1.32838
  23  9.77677
  24  1.45891e-05
  25  2.27177e-05
  26  0.197179
  27  0.182156
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.929e+00  2.899e+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:  8.127e-01  1.822e-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.186e+00  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/774890/likelihoodResults_506563201_506822401_4FGL_J1446.3+3111_daily_bin1031.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) = 6278.29263693
delta logL = 2.73124494826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.82862287
delta logL = 3.19525900794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15813E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.0543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89745       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=   6277.829     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      496 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15797E-03    .81309E-04    .79539E-06** at limit **
   2  Index        10.0000        2.0971        .22982E-01** at limit **
   3  Normalizat    1.0548        .19398        .23448E-03   -.14788E-04
   4  Prefactor     .89713        .18299        .24015E-03   -.13231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000157967
  Index      = 10
  Normalizat = 1.05477
  Prefactor  = 0.897133
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.829     FROM HESSE     STATUS=OK            25 CALLS      521 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15797E-03    .79653E-04    .74894E-07   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        2.0964        .91927E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0548        .19418        .93793E-05   -.91217    
   4  Prefactor     .89713        .18318        .96061E-05   -.96241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63651e-10
Minuit parameter uncertainties:
  1  7.96528e-05
  2  5.85837e-05
  3  0.194309
  4  0.18331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774890': 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) = 6277.82860935
delta logL = 3.19527253218

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.580e-04  7.965e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.000e+01  5.858e-05  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  8.971e-01  1.833e-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.055e+00  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.79
Ra Dec: 221.591 31.195
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 9.35e-08 +/- 4.57e-08
Energy Flux (Free Index): 1.05e-05 +/- 5.14e-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/774890/cmap_HighResolution_506563201_506822401_4FGL_J1446.3+3111_daily_bin1031.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='3.20e+00', photon_flux2='9.35e-08', job_status='DONE', time_completed='2021-09-10 09:20:57.364785', photon_index_error2='0.00', photon_index2='10.00', ts='0.01', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='8.08e-08', energy_flux_error2='5.14e-06', EG='1.19', time_epoch_completed='1631290857.36', return_code='0', job_id='774890', GAL2='0.90', EG2='1.05', return_code2='0', photon_flux_error2='4.57e-08', ts2='6.79', photon_index='2.56' WHERE bin_id='1031' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:20:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 774890: <4FGL_J1446.3+3111_daily_bin1031> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1031 221.591 31.1955 506563201 506822401 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 :                                   749.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

