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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1561
RA = 221.591, Dec = 31.1955
tmin = 643939201, tmax = 644198401
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='776801', job_status='RUN', time_executed='2021-09-10 09:15:04.250026', time_epoch_executed='1631290504.25' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776801

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776801/ft1_4FGL_J1446.3+3111_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776801/ft2_4FGL_J1446.3+3111_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776801/ft1_4FGL_J1446.3+3111_daily_bin1561.fits outfile=/scratch/kocevski/776801/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1561.fits ra=221.591 dec=31.1955 rad=12.0 tmin=643939201.0 tmax=644198401.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 4.43
user 4.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/776801/ft2_4FGL_J1446.3+3111_daily_bin1561.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/776801/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1561.fits evtable="EVENTS" outfile="/scratch/kocevski/776801/ft1_filtered_4FGL_J1446.3+3111_daily_bin1561.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.51
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776801/ft1_filtered_4FGL_J1446.3+3111_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/776801/ft2_4FGL_J1446.3+3111_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/776801/ltcube_643939201_644198401_4FGL_J1446.3+3111_daily_bin1561.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/776801/ft2_4FGL_J1446.3+3111_daily_bin1561.fits
.....................!
real 11.83
user 11.52
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776801/ft1_filtered_4FGL_J1446.3+3111_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/776801/ft2_4FGL_J1446.3+3111_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/776801/ltcube_643939201_644198401_4FGL_J1446.3+3111_daily_bin1561.fits outfile=/scratch/kocevski/776801/expmap_643939201_644198401_4FGL_J1446.3+3111_daily_bin1561.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/776801/ltcube_643939201_644198401_4FGL_J1446.3+3111_daily_bin1561.fits
.....................!
real 191.60
user 186.12
sys 5.10

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J1446.3+3111 @ 221.591 31.1955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/776801/ft1_filtered_4FGL_J1446.3+3111_daily_bin1561.fits scfile=/scratch/kocevski/776801/ft2_4FGL_J1446.3+3111_daily_bin1561.fits outfile=/scratch/kocevski/776801/cmap_643939201_644198401_4FGL_J1446.3+3111_daily_bin1561.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776801/ft1_filtered_4FGL_J1446.3+3111_daily_bin1561.fits scfile=/scratch/kocevski/776801/ft2_4FGL_J1446.3+3111_daily_bin1561.fits outfile=/scratch/kocevski/776801/cmap_HighResolution_643939201_644198401_4FGL_J1446.3+3111_daily_bin1561.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=221.591 yref=31.1955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11915E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .23633E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6032       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.742       1.0000         .10000E-03   10000.    
     7 'norm      '    13.213       1.0000         .10000E-03   10000.    
     8 'norm      '    5.4081       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.227       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6668       1.0000         .10000E-03   10000.    
    11 'norm      '    6.7630       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.690       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.168       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2658       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.109       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .67665       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2442       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99768       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93275       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=   6283.248     FROM MIGRAD    STATUS=CONVERGED   1141 CALLS     3800 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4176        .36285E-03** at limit **
   2  Prefactor     .10000E-03    8.0141        .18142E-02** at limit **
   3  norm          .10002E-03    9.4412        .21108E-02** at limit **
   4  Prefactor     1.6084        22.056        .16738E-02   -.61218E-03
   5  Prefactor     .10000E-03    4.9426        .17192E-02** at limit **
   6  Prefactor     10.741        4.2251        .97384E-04   -.15655E-03
   7  norm          13.203        15.201        .11020E-03   -.15386E-03
   8  norm          5.4084        2.5562        .84543E-04    .74229E-04
   9  Prefactor     17.233        22.568        .96498E-04   -.39114E-04
  10  norm          2.6670        3.1830        .14968E-03   -.25976E-04
  11  norm          6.7622        5.6613        .77145E-03   -.40012E-03
  12  Prefactor     .10000E-03    14.090        .18142E-02** at limit **
  13  norm          12.691        5.5217        .56222E-03   -.37004E-04
  14  Prefactor     35.164        31.726        .67577E-04    .32301E-04
  15  norm          7.2655        6.9026        .14880E-03    .93972E-05
  16  Prefactor     10.111        10.765        .63012E-03   -.23599E-04
  17  Prefactor     .10000E-03    3.0532        .13495E-02** at limit **
  18  Prefactor     .10000E-03    5.8625        .61340E-01** at limit **
  19  norm          .67679        1.2413        .11600E-03   -.33020E-03
  20  Prefactor     .10000E-03    25.674        .18142E-02** at limit **
  21  Prefactor     .10000E-03    1.8145        .10419E-02** at limit **
  22  norm          1.2445        .94384        .64892E-04   -.11360E-02
  23  Prefactor     .10000E-03    7.2399        .18142E-02** at limit **
  24  Prefactor     .10000E-03    8.3251        .18142E-02** at limit **
  25  Prefactor     .10000E-03    9.6407        .18142E-02** at limit **
  26  Normalizat    .99767        .19952        .24224E-03   -.57772E-04
  27  Prefactor     .93266        .18413        .23935E-03    .21469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 1.60842
  Prefactor  = 0.0001
  Prefactor  = 10.7412
  norm       = 13.2034
  norm       = 5.40838
  Prefactor  = 17.2328
  norm       = 2.66697
  norm       = 6.76223
  Prefactor  = 0.0001
  norm       = 12.6913
  Prefactor  = 35.1642
  norm       = 7.26547
  Prefactor  = 10.1113
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.676785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.2445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.997666
  Prefactor  = 0.932663
 **********
 **   18 **HESSE 
 **********

 FCN=   6283.248     FROM HESSE     STATUS=OK           470 CALLS     4270 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4180        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.0146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    9.5308        .42217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6084        21.777        .66950E-04   -1.5454    
   5  Prefactor     .10000E-03    4.9427        .34384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.741        4.2251        .38954E-05   -1.5052    
   7  norm          13.203        15.123        .22039E-04   -1.4981    
   8  norm          5.4084        2.5561        .33817E-05   -1.5243    
   9  Prefactor     17.233        22.570        .38599E-05   -1.4877    
  10  norm          2.6670        3.1829        .59871E-05   -1.5381    
  11  norm          6.7622        5.6604        .30858E-04   -1.5188    
  12  Prefactor     .10000E-03    14.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.691        5.5217        .22489E-04   -1.4995    
  14  Prefactor     35.164        31.731        .27031E-05   -1.4521    
  15  norm          7.2655        6.9025        .59522E-05   -1.5169    
  16  Prefactor     10.111        10.763        .25205E-04   -1.5072    
  17  Prefactor     .10000E-03    3.0534        .26990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.8275        .61667E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .67679        1.2411        .46398E-05   -1.5543    
  20  Prefactor     .10000E-03    25.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.8145        .20838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2445        .94369        .25957E-05   -1.5485    
  23  Prefactor     .10000E-03    7.2436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.3252        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.6412        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99767        .19954        .96897E-05   -.93109    
  27  Prefactor     .93266        .18429        .95740E-05   -.95009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14343e-09
Minuit parameter uncertainties:
  1  2.9236e-05
  2  1.0249e-05
  3  0.000820111
  4  11.8414
  5  4.38298e-06
  6  4.22522
  7  15.1278
  8  2.5562
  9  22.5808
  10  3.18315
  11  5.66089
  12  4.54148e-05
  13  5.52188
  14  31.7463
  15  6.90326
  16  10.7652
  17  3.67565e-07
  18  0.000250165
  19  1.24115
  20  3.45988e-05
  21  2.15145e-06
  22  0.943697
  23  1.6721e-05
  24  1.15281e-05
  25  1.55402e-05
  26  0.199684
  27  0.184412
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  3.516e+01  3.175e+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.327e-01  1.844e-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.977e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 9.42e-06

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

Saving results to:
/scratch/kocevski/776801/likelihoodResults_643939201_644198401_4FGL_J1446.3+3111_daily_bin1561.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) = 6283.24707296
delta logL = 0.00051075801548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6283.24666094
delta logL = 0.000922777862797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.293       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5170       1.0000          .0000       10.000    
     3 'Normalizat'    .99901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93197       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=   6283.247     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      228 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.390        984.13        .16631E-02   -.27537E-03
   2  Index         2.5198        6.0997        .17660       -.63624E-04
   3  Normalizat    .99854        .73002E-01    .46155E-01   -.37026E-03
   4  Prefactor     .93201        .63737E-01    .45411E-01   -.73963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.3897
  Index      = 2.51982
  Normalizat = 0.998539
  Prefactor  = 0.932009
 **********
 **   18 **HESSE 
 **********

 FCN=   6283.247     FROM HESSE     STATUS=OK            27 CALLS      255 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.390        45.779        .66525E-04   -1.4501    
   2  Index         2.5198        .88834        .90264E-02   -.51903    
   3  Normalizat    .99854        .18989        .24215E-03   -.93079    
   4  Prefactor     .93201        .18081        .23942E-03   -.95031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18579e-09
Minuit parameter uncertainties:
  1  45.8233
  2  0.894655
  3  0.19002
  4  0.180923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776801': 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) = 6283.24663375
delta logL = 0.000949970437432

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  3.639e+01  4.582e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.520e+00  8.947e-01  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:  9.320e-01  1.809e-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.985e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.52 +/- 0.89
Photon Flux (Free Index): 3.76e-08 +/- 3.60e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.17e-05

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/776801/cmap_HighResolution_643939201_644198401_4FGL_J1446.3+3111_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.85e-03', comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='1.07e-05', photon_flux_error='3.44e-08', dlogl='9.50e-04', energy_flux='1.04e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-09-10 09:27:40.440535', photon_index_error2='0.89', photon_index2='2.52', ts='1.85', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.17e-05', EG='1.00', time_epoch_completed='1631291260.44', return_code='0', job_id='776801', GAL2='0.93', EG2='1.00', return_code2='0', energy_flux_error='9.42e-06', photon_flux_error2='3.60e-08', ts2='1.84', photon_index='2.56' WHERE bin_id='1561' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:27:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 776801: <4FGL_J1446.3+3111_daily_bin1561> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1561 221.591 31.1955 643939201 644198401 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

