/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 133 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1446.3+3111_daily_bin37
RA = 221.591, Dec = 31.1955
tmin = 248918401, tmax = 249177601
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='767819', job_status='RUN', time_executed='2021-09-10 08:43:58.510184', time_epoch_executed='1631288638.51' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/767819

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/767819/ft1_4FGL_J1446.3+3111_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/767819/ft2_4FGL_J1446.3+3111_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/767819/ft1_4FGL_J1446.3+3111_daily_bin37.fits outfile=/scratch/kocevski/767819/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin37.fits ra=221.591 dec=31.1955 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.94
user 1.76
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/767819/ft1_filtered_4FGL_J1446.3+3111_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/767819/ft2_4FGL_J1446.3+3111_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/767819/ltcube_248918401_249177601_4FGL_J1446.3+3111_daily_bin37.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/767819/ft2_4FGL_J1446.3+3111_daily_bin37.fits
.....................!
real 12.91
user 12.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/767819/ft1_filtered_4FGL_J1446.3+3111_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/767819/ft2_4FGL_J1446.3+3111_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/767819/ltcube_248918401_249177601_4FGL_J1446.3+3111_daily_bin37.fits outfile=/scratch/kocevski/767819/expmap_248918401_249177601_4FGL_J1446.3+3111_daily_bin37.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/767819/ltcube_248918401_249177601_4FGL_J1446.3+3111_daily_bin37.fits
.....................!
real 190.86
user 185.43
sys 5.05

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/767819/ft1_filtered_4FGL_J1446.3+3111_daily_bin37.fits scfile=/scratch/kocevski/767819/ft2_4FGL_J1446.3+3111_daily_bin37.fits outfile=/scratch/kocevski/767819/cmap_248918401_249177601_4FGL_J1446.3+3111_daily_bin37.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.16

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.295       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1442       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.566       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9110       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10511E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.140       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2734       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2284       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87896       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=   5495.503     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3261 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2086       -.63369E-06** at limit **
   2  Prefactor     .10000E-03    7.4624       -.48399E-05** at limit **
   3  norm          .10000E-03    2.1674       -.52699E-06** at limit **
   4  Prefactor     17.300        13.144       -.53169E-06    .47762E-04
   5  Prefactor     .10000E-03    6.2341        .25036E-05** at limit **
   6  Prefactor     .10000E-03    1.9976       -.97543E-08** at limit **
   7  norm          .10000E-03    7.5972       -.29741E-05** at limit **
   8  norm          12.240        3.7526       -.47592E-07    .63608E-04
   9  Prefactor     .10000E-03    29.517        .11014E-04** at limit **
  10  norm          .10000E-03    2.4146        .33687E-07** at limit **
  11  norm          3.1483        8.0903       -.10881E-05   -.23096E-03
  12  Prefactor     .10000E-03    25.862       -.19992E-04** at limit **
  13  norm          .10000E-03    1.3667       -.13053E-06** at limit **
  14  Prefactor     58.550        45.660       -.14316E-04    .58338E-05
  15  norm          .10000E-03    3.3844        .73787E-06** at limit **
  16  Prefactor     3.4915        18.033       -.17198E-05   -.72004E-04
  17  Prefactor     6.9161        6.6115       -.44017E-06   -.97699E-04
  18  Prefactor     .10000E-03    4.5407       -.46377E-06** at limit **
  19  norm          .10000E-03    1.1444        .31450E-06** at limit **
  20  Prefactor     .10000E-03    65.928       -.87441E-05** at limit **
  21  Prefactor     .10000E-03    7.9751        .59297E-05** at limit **
  22  norm          11.140        2.1742       -.17315E-06   -.22136E-02
  23  Prefactor     .10000E-03    28.989        .11521E-04** at limit **
  24  Prefactor     .10000E-03    16.318        .91097E-06** at limit **
  25  Prefactor     4.2747        57.715        .20462E-05   -.23750E-04
  26  Normalizat    1.2276        .20665        .30456E-05   -.34137E-03
  27  Prefactor     .87969        .17992       -.73130E-06   -.72623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.2999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.2398
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.14833
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.5505
  norm       = 0.0001
  Prefactor  = 3.49151
  Prefactor  = 6.91611
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.27468
  Normalizat = 1.2276
  Prefactor  = 0.879693
 **********
 **   18 **HESSE 
 **********

 FCN=   5495.503     FROM HESSE     STATUS=OK           478 CALLS     3739 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2459        .12967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1873        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.300        13.162        .96307E-04   -1.4876    
   5  Prefactor     .10000E-03    6.2399        .18076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0213        .10227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.6033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.240        3.7528        .77221E-04   -1.5008    
   9  Prefactor     .10000E-03    29.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4887        .22488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1483        8.1047        .22861E-03   -1.5353    
  12  Prefactor     .10000E-03    25.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3699        .84630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.550        45.705        .52424E-04   -1.4176    
  15  norm          .10000E-03    3.3856        .13319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4915        17.908        .21689E-03   -1.5334    
  17  Prefactor     6.9161        6.4718        .15261E-03   -1.5182    
  18  Prefactor     .10000E-03    4.5695        .15426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1750        .14949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    66.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.140        2.1665        .45902E-04   -1.5040    
  23  Prefactor     .10000E-03    29.718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.2747        57.772        .19490E-03   -1.5294    
  26  Normalizat    1.2276        .24417        .24728E-03   -.85754    
  27  Prefactor     .87969        .21245        .26381E-03   -.96854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79271e-10
Minuit parameter uncertainties:
  1  5.68665e-06
  2  3.16353e-07
  3  2.53501e-07
  4  13.1637
  5  3.27608e-06
  6  7.10444e-06
  7  3.76088e-06
  8  3.75286
  9  5.32856e-05
  10  6.38253e-06
  11  8.10752
  12  1.33964e-05
  13  9.73196e-08
  14  45.7323
  15  4.42192e-06
  16  15.8217
  17  6.47241
  18  4.99539e-06
  19  3.38126e-05
  20  5.42781e-05
  21  3.45713e-05
  22  2.16647
  23  0.000167045
  24  1.14654e-05
  25  31.4666
  26  0.244402
  27  0.212653
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.855e+01  4.573e+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.797e-01  2.127e-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.228e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 4.96e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.36e-05

TS (Fixed Index): 2.47
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/767819/likelihoodResults_248918401_249177601_4FGL_J1446.3+3111_daily_bin37.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) = 5495.10187255
delta logL = 0.401230838915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5495.09565333
delta logL = 0.407450059395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.919       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2307       1.0000          .0000       10.000    
     3 'Normalizat'    1.1907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90327       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=   5495.096     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      293 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.924        49.106        .72057E-04    .57272E-04
   2  Index         3.2305        1.0032        .52932E-02    .51684E-04
   3  Normalizat    1.1906        .23652        .25044E-03    .21370E-03
   4  Prefactor     .90331        .21307        .26074E-03    .14559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.9237
  Index      = 3.23047
  Normalizat = 1.19056
  Prefactor  = 0.903309
 **********
 **   18 **HESSE 
 **********

 FCN=   5495.096     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.924        40.968        .28823E-05   -1.4595    
   2  Index         3.2305        .83740        .21173E-03   -.36174    
   3  Normalizat    1.1906        .23672        .50087E-04   -.86895    
   4  Prefactor     .90331        .21310        .10429E-04   -.96026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49036e-11
Minuit parameter uncertainties:
  1  41.0056
  2  0.841941
  3  0.236934
  4  0.213298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/767819': 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) = 5495.09565295
delta logL = 0.40745043935

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  3.092e+01  4.101e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.230e+00  8.419e-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.033e-01  2.133e-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.191e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 221.591 31.195
Photon Index (Free Index): 3.23 +/- 0.84
Photon Flux (Free Index): 9.07e-08 +/- 6.30e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.13e-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/767819/cmap_HighResolution_248918401_249177601_4FGL_J1446.3+3111_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='1.64e-05', photon_flux_error='4.96e-08', dlogl='4.07e-01', energy_flux='1.74e-05', photon_flux2='9.07e-08', job_status='DONE', time_completed='2021-09-10 08:54:57.562984', photon_index_error2='0.84', photon_index2='3.23', ts='2.47', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.13e-05', EG='1.23', time_epoch_completed='1631289297.56', return_code='0', job_id='767819', GAL2='0.90', EG2='1.19', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='6.30e-08', ts2='3.36', photon_index='2.56' WHERE bin_id='37' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 08:54:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 767819: <4FGL_J1446.3+3111_daily_bin37> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin37> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 08:41:33 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:41:34 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:41:34 2021
Terminated at Fri Sep 10 08:54:58 2021
Results reported at Fri Sep 10 08:54:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin37 221.591 31.1955 248918401 249177601 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 :                                   659.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

