/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 5 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 = 7551
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1446.3+3111_daily_bin444
RA = 221.591, Dec = 31.1955
tmin = 354412801, tmax = 354672001
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='770734', job_status='RUN', time_executed='2021-09-10 08:51:27.299016', time_epoch_executed='1631289087.3' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/770734

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/770734/ft1_4FGL_J1446.3+3111_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/770734/ft2_4FGL_J1446.3+3111_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/770734/ft1_4FGL_J1446.3+3111_daily_bin444.fits outfile=/scratch/kocevski/770734/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin444.fits ra=221.591 dec=31.1955 rad=12.0 tmin=354412801.0 tmax=354672001.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.43
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/770734/ft2_4FGL_J1446.3+3111_daily_bin444.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/770734/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin444.fits evtable="EVENTS" outfile="/scratch/kocevski/770734/ft1_filtered_4FGL_J1446.3+3111_daily_bin444.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/770734/ft1_filtered_4FGL_J1446.3+3111_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/770734/ft2_4FGL_J1446.3+3111_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/770734/ltcube_354412801_354672001_4FGL_J1446.3+3111_daily_bin444.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/770734/ft2_4FGL_J1446.3+3111_daily_bin444.fits
.....................!
real 12.18
user 11.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/770734/ft1_filtered_4FGL_J1446.3+3111_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/770734/ft2_4FGL_J1446.3+3111_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/770734/ltcube_354412801_354672001_4FGL_J1446.3+3111_daily_bin444.fits outfile=/scratch/kocevski/770734/expmap_354412801_354672001_4FGL_J1446.3+3111_daily_bin444.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/770734/ltcube_354412801_354672001_4FGL_J1446.3+3111_daily_bin444.fits
.....................!
real 191.10
user 186.02
sys 4.72

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/770734/ft1_filtered_4FGL_J1446.3+3111_daily_bin444.fits scfile=/scratch/kocevski/770734/ft2_4FGL_J1446.3+3111_daily_bin444.fits outfile=/scratch/kocevski/770734/cmap_354412801_354672001_4FGL_J1446.3+3111_daily_bin444.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/770734/ft1_filtered_4FGL_J1446.3+3111_daily_bin444.fits scfile=/scratch/kocevski/770734/ft2_4FGL_J1446.3+3111_daily_bin444.fits outfile=/scratch/kocevski/770734/cmap_HighResolution_354412801_354672001_4FGL_J1446.3+3111_daily_bin444.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/770734/ft1_filtered_4FGL_J1446.3+3111_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/770734/ft2_4FGL_J1446.3+3111_daily_bin444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/770734/Model_4FGL_J1446.3+3111_daily_bin444.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/770734/ft1_filtered_4FGL_J1446.3+3111_daily_bin444.fits.....................!
real 50.16
user 48.83
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.405       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.453       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91189E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3100       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8516       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8349       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.732       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.934       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3294       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.232       1.0000         .10000E-03   10000.    
    22 'norm      '    13.646       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.4823       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1092       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85180       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=   6492.439     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3696 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8368       -.10592E-07** at limit **
   2  Prefactor     .10000E-03    6.6368       -.11630E-06** at limit **
   3  norm          12.404        5.1159        .14148E-07    .59521E-04
   4  Prefactor     10.465        12.631        .16504E-05    .14232E-03
   5  Prefactor     .10003E-03    13.200       -.19200E-05** at limit **
   6  Prefactor     3.3086        4.3050        .17349E-06   -.15627E-03
   7  norm          .10000E-03    4.9741       -.17561E-06** at limit **
   8  norm          2.8519        2.5427        .53576E-07   -.96360E-04
   9  Prefactor     6.8318        24.406        .78665E-06    .26334E-05
  10  norm          .10000E-03    1.4996       -.90205E-08** at limit **
  11  norm          12.730        7.1279        .17655E-06    .38829E-04
  12  Prefactor     .10000E-03    25.661        .12166E-05** at limit **
  13  norm          1.1644        3.4070        .73134E-06   -.25843E-03
  14  Prefactor     54.956        34.150        .12809E-05    .62862E-04
  15  norm          3.3293        5.3555        .83326E-07   -.41527E-04
  16  Prefactor     .10000E-03    4.9376        .14529E-06** at limit **
  17  Prefactor     .10000E-03    2.1423        .13551E-08** at limit **
  18  Prefactor     .10000E-03    3.0888       -.64499E-08** at limit **
  19  norm          .10000E-03    .48473       -.40532E-09** at limit **
  20  Prefactor     .10000E-03    24.923       -.12466E-05** at limit **
  21  Prefactor     10.233        8.3371        .28107E-07   -.18173E-04
  22  norm          13.646        2.1373        .36416E-08   -.10286E-04
  23  Prefactor     .10000E-03    4.2772       -.68847E-08** at limit **
  24  Prefactor     .10000E-03    13.508        .25646E-07** at limit **
  25  Prefactor     8.4814        14.059        .10347E-06   -.16437E-06
  26  Normalizat    1.1095        .18327       -.22148E-06    .84397E-04
  27  Prefactor     .85156        .16175       -.50297E-07    .38389E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4041
  Prefactor  = 10.4649
  Prefactor  = 0.000100027
  Prefactor  = 3.3086
  norm       = 0.0001
  norm       = 2.85193
  Prefactor  = 6.83183
  norm       = 0.0001
  norm       = 12.7303
  Prefactor  = 0.0001
  norm       = 1.16437
  Prefactor  = 54.9556
  norm       = 3.32927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2325
  norm       = 13.6464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.48139
  Normalizat = 1.10946
  Prefactor  = 0.851563
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.439     FROM HESSE     STATUS=OK           490 CALLS     4186 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8439        .10664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.404        5.1145        .11138E-03   -1.5003    
   4  Prefactor     10.465        12.620        .12393E-03   -1.5061    
   5  Prefactor     .10003E-03    138.22        .48590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3086        4.3203        .17735E-03   -1.5344    
   7  norm          .10000E-03    4.9794        .17556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8519        2.5349        .11674E-03   -1.5370    
   9  Prefactor     6.8318        24.456        .15347E-03   -1.5185    
  10  norm          .10000E-03    1.5178        .96334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.730        7.1398        .11226E-03   -1.4994    
  12  Prefactor     .10000E-03    25.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1644        3.3333        .24135E-03   -1.5492    
  14  Prefactor     54.956        34.452        .54119E-04   -1.4224    
  15  norm          3.3293        5.3408        .22183E-03   -1.5343    
  16  Prefactor     .10000E-03    4.9471        .17478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1485        .11516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0985        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .49467        .54744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.233        8.3381        .12526E-03   -1.5068    
  22  norm          13.646        2.1400        .44259E-04   -1.4969    
  23  Prefactor     .10000E-03    4.2873        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.4814        14.051        .13764E-03   -1.5125    
  26  Normalizat    1.1095        .21492        .24874E-03   -.89449    
  27  Prefactor     .85156        .18935        .26158E-03   -.97855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14264e-10
Minuit parameter uncertainties:
  1  5.73248e-07
  2  1.11649e-06
  3  5.11464
  4  12.6228
  5  0.00389184
  6  4.32069
  7  3.80772e-06
  8  2.53503
  9  24.4917
  10  4.51392e-07
  11  7.14026
  12  5.80525e-05
  13  3.33379
  14  34.4641
  15  5.34152
  16  2.67394e-06
  17  5.02708e-07
  18  2.84692e-07
  19  3.61017e-08
  20  6.61519e-05
  21  8.33903
  22  2.14004
  23  4.14117e-07
  24  1.96165e-06
  25  14.0568
  26  0.215092
  27  0.1895
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.496e+01  3.446e+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.516e-01  1.895e-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.109e+00  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.12
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 5.97e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.02e-05

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) = 6492.32232244
delta logL = 0.116638846363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6492.3182811
delta logL = 0.120680186583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.125       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2481       1.0000          .0000       10.000    
     3 'Normalizat'    1.1272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84051       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=   6492.318     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      304 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.138        44.892        .49730E-04    .32920E-04
   2  Index         2.2481        .61632        .89055E-02    .14284E-04
   3  Normalizat    1.1270        .20150        .24708E-03    .15184E-03
   4  Prefactor     .84069        .18569        .26305E-03   -.57135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.1376
  Index      = 2.2481
  Normalizat = 1.12699
  Prefactor  = 0.840695
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.318     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.138        44.344        .99460E-05   -1.4092    
   2  Index         2.2481        .60832        .35622E-03   -.58282    
   3  Normalizat    1.1270        .20162        .98834E-05   -.88890    
   4  Prefactor     .84069        .18581        .10522E-04   -.98245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69926e-10
Minuit parameter uncertainties:
  1  44.3667
  2  0.610498
  3  0.201756
  4  0.185953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/770734': 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) = 6492.31828053
delta logL = 0.120680752623

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  6.514e+01  4.437e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.248e+00  6.105e-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:  8.407e-01  1.860e-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.127e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.31
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.25 +/- 0.61
Photon Flux (Free Index): 4.75e-08 +/- 4.14e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.59e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.97e-08', energy_flux2='1.96e-05', photon_flux_error='3.74e-08', dlogl='1.21e-01', energy_flux='1.63e-05', photon_flux2='4.75e-08', job_status='DONE', time_completed='2021-09-10 09:03:03.911747', photon_index_error2='0.61', photon_index2='2.25', ts='5.12', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='1.11', time_epoch_completed='1631289783.91', return_code='0', job_id='770734', GAL2='0.84', EG2='1.13', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.14e-08', ts2='5.31', photon_index='2.56' WHERE bin_id='444' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:03:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 770734: <4FGL_J1446.3+3111_daily_bin444> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin444> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 08:51:12 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:51:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 08:51:13 2021
Terminated at Fri Sep 10 09:03:04 2021
Results reported at Fri Sep 10 09:03:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin444 221.591 31.1955 354412801 354672001 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 :                                   692.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            712 sec.

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

