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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin345
RA = 221.591, Dec = 31.1955
tmin = 328752001, tmax = 329011201
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='770592', job_status='RUN', time_executed='2021-09-10 08:53:41.103783', time_epoch_executed='1631289221.1' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/770592

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/770592/ft1_4FGL_J1446.3+3111_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/770592/ft2_4FGL_J1446.3+3111_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/770592/ft1_4FGL_J1446.3+3111_daily_bin345.fits outfile=/scratch/kocevski/770592/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin345.fits ra=221.591 dec=31.1955 rad=12.0 tmin=328752001.0 tmax=329011201.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.19
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/770592/ft1_filtered_4FGL_J1446.3+3111_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/770592/ft2_4FGL_J1446.3+3111_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/770592/ltcube_328752001_329011201_4FGL_J1446.3+3111_daily_bin345.fits outfile=/scratch/kocevski/770592/expmap_328752001_329011201_4FGL_J1446.3+3111_daily_bin345.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/770592/ltcube_328752001_329011201_4FGL_J1446.3+3111_daily_bin345.fits
.....................!
real 190.53
user 184.85
sys 5.14

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/770592/ft1_filtered_4FGL_J1446.3+3111_daily_bin345.fits scfile=/scratch/kocevski/770592/ft2_4FGL_J1446.3+3111_daily_bin345.fits outfile=/scratch/kocevski/770592/cmap_328752001_329011201_4FGL_J1446.3+3111_daily_bin345.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/770592/ft1_filtered_4FGL_J1446.3+3111_daily_bin345.fits scfile=/scratch/kocevski/770592/ft2_4FGL_J1446.3+3111_daily_bin345.fits outfile=/scratch/kocevski/770592/cmap_HighResolution_328752001_329011201_4FGL_J1446.3+3111_daily_bin345.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.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.663       1.0000         .10000E-03   10000.    
     3 'norm      '    7.1354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17923E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.4505       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1594       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8506       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.389       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8006       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.996       1.0000         .10000E-03   10000.    
    19 'norm      '    .55756       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0857       1.0000         .10000E-03   10000.    
    22 'norm      '    20.784       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .66255E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3240       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3253       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .73789       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=   6806.524     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3982 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8769        4.4953        .16095E-06    .25267E-04
   2  Prefactor     13.661        14.368        .72396E-07    .59257E-04
   3  norm          7.1356        4.4221       -.63145E-07    .49221E-04
   4  Prefactor     .10000E-03    29.345       -.82323E-06** at limit **
   5  Prefactor     9.5258        17.474        .96517E-06    .30037E-03
   6  Prefactor     .10000E-03    2.3838       -.69339E-06** at limit **
   7  norm          .10000E-03    6.0508        .56630E-07** at limit **
   8  norm          6.4498        3.0294       -.23770E-08   -.66142E-04
   9  Prefactor     .10000E-03    43.986        .22785E-07** at limit **
  10  norm          5.1591        3.2879        .47967E-07   -.49633E-04
  11  norm          3.8526        7.4643       -.39446E-06   -.97472E-04
  12  Prefactor     16.403        38.018        .95630E-06   -.33192E-04
  13  norm          1.7983        3.0958       -.51875E-07   -.10544E-04
  14  Prefactor     .10000E-03    13.449        .64444E-06** at limit **
  15  norm          .10000E-03    2.8805        .27436E-07** at limit **
  16  Prefactor     .10000E-03    7.1661        .85900E-07** at limit **
  17  Prefactor     .10000E-03    2.6486       -.30921E-08** at limit **
  18  Prefactor     13.995        8.9727       -.30049E-08   -.17468E-04
  19  norm          .55803        1.2973       -.34366E-07    .12760E-03
  20  Prefactor     .10000E-03    32.447        .51923E-06** at limit **
  21  Prefactor     3.0832        9.4838       -.12655E-06    .26931E-04
  22  norm          20.775        2.9615       -.60326E-08    .17134E-02
  23  Prefactor     .10000E-03    59.440       -.15961E-04** at limit **
  24  Prefactor     .10000E-03    14.441       -.66922E-06** at limit **
  25  Prefactor     2.3246        51.967       -.70556E-05   -.92044E-05
  26  Normalizat    1.3249        .19234       -.39381E-06   -.13480E-03
  27  Prefactor     .73817        .16923        .72767E-07   -.12636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.87695
  Prefactor  = 13.6611
  norm       = 7.1356
  Prefactor  = 0.0001
  Prefactor  = 9.52584
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 6.44978
  Prefactor  = 0.000100002
  norm       = 5.15912
  norm       = 3.85261
  Prefactor  = 16.4031
  norm       = 1.79832
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9951
  norm       = 0.558033
  Prefactor  = 0.0001
  Prefactor  = 3.08317
  norm       = 20.775
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.32458
  Normalizat = 1.32489
  Prefactor  = 0.738169
 **********
 **   18 **HESSE 
 **********

 FCN=   6806.524     FROM HESSE     STATUS=OK           492 CALLS     4474 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8769        4.4796        .26214E-03   -1.5434    
   2  Prefactor     13.661        14.362        .10836E-03   -1.4969    
   3  norm          7.1356        4.4195        .13097E-03   -1.5174    
   4  Prefactor     .10000E-03    29.700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5258        17.735        .64910E-03   -1.5091    
   6  Prefactor     .10000E-03    6.9655        .23998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.0531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.4498        3.0310        .94912E-04   -1.5200    
   9  Prefactor     .10000E-03    44.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1591        3.2890        .11577E-03   -1.5254    
  11  norm          3.8526        7.4637        .20566E-03   -1.5315    
  12  Prefactor     16.403        37.902        .98932E-04   -1.4898    
  13  norm          1.7983        3.0719        .18389E-03   -1.5440    
  14  Prefactor     .10000E-03    13.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8825        .13675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6535        .13107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.995        8.9849        .10706E-03   -1.4960    
  19  norm          .55803        1.2262        .13535E-02   -1.5559    
  20  Prefactor     .10000E-03    32.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0832        9.4983        .23089E-03   -1.5357    
  22  norm          20.775        2.6205        .45032E-04   -1.4796    
  23  Prefactor     .10000E-03    59.184        .45869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.3246        51.686        .13453E-02   -1.5403    
  26  Normalizat    1.3249        .22772        .25291E-03   -.82827    
  27  Prefactor     .73817        .20147        .29463E-03   -1.0205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37324e-10
Minuit parameter uncertainties:
  1  4.48035
  2  14.3659
  3  4.41969
  4  0.000140294
  5  17.745
  6  0.000152668
  7  2.34266e-06
  8  3.03103
  9  0.000542868
  10  3.28913
  11  7.46547
  12  37.9579
  13  3.0722
  14  1.64714e-05
  15  2.5704e-06
  16  1.05532e-05
  17  7.42558e-07
  18  8.98574
  19  1.22626
  20  2.4788e-05
  21  9.50293
  22  2.62051
  23  0.000622338
  24  4.05632e-05
  25  21.9434
  26  0.227897
  27  0.201668
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.647e-05  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:  7.382e-01  2.017e-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.325e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/770592/likelihoodResults_328752001_329011201_4FGL_J1446.3+3111_daily_bin345.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) = 6806.52410781
delta logL = -0.000353612955223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6806.52375421
delta logL = -1.95414031623e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5513       1.0000          .0000       10.000    
     3 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73820       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=   6806.524     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      261 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.322        .18142E-02** at limit **
   2  Index         2.1893        5.2737        .50000       -.19054E-07
   3  Normalizat    1.3249        .21121        .25291E-03    .23510E-04
   4  Prefactor     .73817        .19024        .29463E-03    .20142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18933
  Normalizat = 1.32489
  Prefactor  = 0.738169
 **********
 **   18 **HESSE 
 **********

 FCN=   6806.524     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1893        6.4303        .50000       -.59696    
   3  Normalizat    1.3249        .21140        .10116E-04   -.82826    
   4  Prefactor     .73817        .19041        .11785E-04   -1.0205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16249e-12
Minuit parameter uncertainties:
  1  1.33683e-05
  2  335.262
  3  0.211539
  4  0.19058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/770592': 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) = 6806.52375403
delta logL = 1.58765942615e-07

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.337e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.189e+00  3.353e+02  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:  7.382e-01  1.906e-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.325e+00  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 221.591 31.195

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/770592/cmap_HighResolution_328752001_329011201_4FGL_J1446.3+3111_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-09-10 09:07:03.810648', job_id='770592', GAL2='0.74', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631290023.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='345' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:07:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 770592: <4FGL_J1446.3+3111_daily_bin345> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin345> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 08:51:01 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:51:03 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:03 2021
Terminated at Fri Sep 10 09:07:04 2021
Results reported at Fri Sep 10 09:07:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin345 221.591 31.1955 328752001 329011201 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 :                                   802.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

