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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin691
RA = 221.591, Dec = 31.1955
tmin = 418435201, tmax = 418694401
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='773338', job_status='RUN', time_executed='2021-09-10 09:01:19.968071', time_epoch_executed='1631289679.97' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='691'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773338

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773338/ft1_4FGL_J1446.3+3111_daily_bin691.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773338/ft2_4FGL_J1446.3+3111_daily_bin691.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773338/ft1_4FGL_J1446.3+3111_daily_bin691.fits outfile=/scratch/kocevski/773338/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin691.fits ra=221.591 dec=31.1955 rad=12.0 tmin=418435201.0 tmax=418694401.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 5.24
user 4.97
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773338/ft1_filtered_4FGL_J1446.3+3111_daily_bin691.fits evtable="EVENTS" scfile=/scratch/kocevski/773338/ft2_4FGL_J1446.3+3111_daily_bin691.fits sctable="SC_DATA" expcube=/scratch/kocevski/773338/ltcube_418435201_418694401_4FGL_J1446.3+3111_daily_bin691.fits outfile=/scratch/kocevski/773338/expmap_418435201_418694401_4FGL_J1446.3+3111_daily_bin691.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/773338/ltcube_418435201_418694401_4FGL_J1446.3+3111_daily_bin691.fits
.....................!
real 190.92
user 185.96
sys 4.57

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/773338/ft1_filtered_4FGL_J1446.3+3111_daily_bin691.fits scfile=/scratch/kocevski/773338/ft2_4FGL_J1446.3+3111_daily_bin691.fits outfile=/scratch/kocevski/773338/cmap_418435201_418694401_4FGL_J1446.3+3111_daily_bin691.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773338/ft1_filtered_4FGL_J1446.3+3111_daily_bin691.fits scfile=/scratch/kocevski/773338/ft2_4FGL_J1446.3+3111_daily_bin691.fits outfile=/scratch/kocevski/773338/cmap_HighResolution_418435201_418694401_4FGL_J1446.3+3111_daily_bin691.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5761       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6999       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77948       1.0000         .10000E-03   10000.    
     7 'norm      '    62.087       1.0000         .10000E-03   10000.    
     8 'norm      '    10.216       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3873       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7261       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1535       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.352       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5947       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.356       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1651       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.4267       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12409E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5947       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .97842       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83867       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=   5640.166     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3281 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5837        8.0016        .29023E-05   -.98405E-03
   2  Prefactor     .10000E-03    10.164       -.18539E-06** at limit **
   3  norm          2.7002        2.7053        .49069E-07    .66475E-04
   4  Prefactor     .10000E-03    16.875       -.16328E-05** at limit **
   5  Prefactor     .10000E-03    12.182        .19086E-06** at limit **
   6  Prefactor     .78377        4.6203        .12016E-05   -.35102E-03
   7  norm          62.093        24.320       -.26122E-05   -.81700E-03
   8  norm          10.215        3.6020        .16724E-07    .32115E-05
   9  Prefactor     .10000E-03    17.603        .12941E-05** at limit **
  10  norm          .10000E-03    1.8659        .40611E-07** at limit **
  11  norm          4.3894        5.2131        .23991E-06   -.53566E-05
  12  Prefactor     7.7167        31.690        .47663E-05    .11690E-03
  13  norm          2.1536        2.5012       -.64737E-07    .13418E-03
  14  Prefactor     42.337        42.458       -.24386E-06   -.35985E-04
  15  norm          3.5947        5.0741       -.35007E-06   -.19502E-03
  16  Prefactor     .10000E-03    6.8176        .24306E-07** at limit **
  17  Prefactor     .10000E-03    2.6632        .12486E-07** at limit **
  18  Prefactor     17.355        10.661        .76289E-07   -.17133E-04
  19  norm          2.1656        1.4593        .28212E-07   -.31588E-04
  20  Prefactor     .10000E-03    25.450       -.88777E-08** at limit **
  21  Prefactor     .10000E-03    4.1096        .57940E-07** at limit **
  22  norm          9.4241        2.0670        .64732E-07    .10523E-03
  23  Prefactor     .10000E-03    35.431       -.42919E-06** at limit **
  24  Prefactor     3.4820        157.78       -.50684E-05   -.35651E-04
  25  Prefactor     .10000E-03    8.9099        .50151E-07** at limit **
  26  Normalizat    .97772        .19678       -.10891E-05    .46537E-05
  27  Prefactor     .83927        .16657        .33961E-06   -.37818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58372
  Prefactor  = 0.0001
  norm       = 2.70018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.783767
  norm       = 62.0934
  norm       = 10.2154
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.38936
  Prefactor  = 7.71667
  norm       = 2.15355
  Prefactor  = 42.3371
  norm       = 3.59474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3546
  norm       = 2.16558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.42411
  Prefactor  = 0.0001
  Prefactor  = 3.48197
  Prefactor  = 0.0001
  Normalizat = 0.977724
  Prefactor  = 0.839267
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.166     FROM HESSE     STATUS=OK           492 CALLS     3773 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5837        8.9999        .85066E-03   -1.5235    
   2  Prefactor     .10000E-03    10.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7002        2.7142        .12003E-03   -1.5379    
   4  Prefactor     .10000E-03    16.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .78377        4.9422        .30162E-02   -1.5531    
   7  norm          62.093        25.904        .25462E-03   -1.4130    
   8  norm          10.215        3.6051        .81634E-04   -1.5069    
   9  Prefactor     .10000E-03    17.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.9381        .20028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3894        5.2093        .18015E-03   -1.5289    
  12  Prefactor     7.7167        32.393        .14427E-03   -1.5152    
  13  norm          2.1536        2.4983        .62236E-03   -1.5414    
  14  Prefactor     42.337        42.766        .61599E-04   -1.4406    
  15  norm          3.5947        5.0776        .19663E-03   -1.5329    
  16  Prefactor     .10000E-03    6.8337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6684        .11967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.355        10.681        .96138E-04   -1.4875    
  19  norm          2.1656        1.4592        .71807E-04   -1.5414    
  20  Prefactor     .10000E-03    25.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1366        .14866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.4241        2.0584        .46134E-04   -1.5094    
  23  Prefactor     .10000E-03    36.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4820        158.66        .21313E-03   -1.5335    
  25  Prefactor     .10000E-03    8.9147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97772        .23090        .25695E-03   -.93780    
  27  Prefactor     .83927        .19312        .24570E-03   -.98297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76653e-08
Minuit parameter uncertainties:
  1  9.00203
  2  3.63649e-06
  3  2.71434
  4  1.92495e-05
  5  0.000100939
  6  3.93648
  7  25.9087
  8  3.60513
  9  0.000179546
  10  2.71978e-07
  11  5.20983
  12  31.6498
  13  2.49845
  14  42.7968
  15  5.07816
  16  1.63582e-06
  17  3.04712e-07
  18  10.6821
  19  1.45919
  20  4.40779e-06
  21  2.75933e-06
  22  2.05839
  23  0.00023085
  24  47.1406
  25  4.36551e-06
  26  0.231138
  27  0.193274
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  4.234e+01  4.280e+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.393e-01  1.933e-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.777e-01  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/773338/likelihoodResults_418435201_418694401_4FGL_J1446.3+3111_daily_bin691.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) = 5639.43537703
delta logL = 0.730752730736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5638.35082299
delta logL = 1.81530676561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18608E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .89852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90015       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5638.351     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      477 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18614E-03    .12320E-03    .88256E-06** at limit **
   2  Index        10.0000        .39847        .50000    ** at limit **
   3  Normalizat    .89837        .21601        .26609E-03   -.28241E-04
   4  Prefactor     .90030        .18957        .23828E-03    .10501E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00018614
  Index      = 10
  Normalizat = 0.898374
  Prefactor  = 0.900295
 **********
 **   18 **HESSE 
 **********

 FCN=   5638.351     FROM HESSE     STATUS=OK            33 CALLS      510 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18614E-03    .12303E-03    .74893E-07   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .39747        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89837        .21623        .10644E-04   -.96517    
   4  Prefactor     .90030        .18976        .95313E-05   -.96131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14658e-11
Minuit parameter uncertainties:
  1  0.000123027
  2  5.85587e-05
  3  0.216443
  4  0.189903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773338': 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) = 5638.35082175
delta logL = 1.81530801399

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.003e-01  1.899e-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:  8.984e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.25
Ra Dec: 221.591 31.195
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.10e-07 +/- 7.06e-08
Energy Flux (Free Index): 1.23e-05 +/- 7.94e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/773338/cmap_HighResolution_418435201_418694401_4FGL_J1446.3+3111_daily_bin691.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.23e-05', photon_flux_error='4.64e-08', dlogl='1.82e+00', energy_flux='1.26e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-10 09:13:03.223058', photon_index_error2='0.00', photon_index2='10.00', ts='1.36', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='7.94e-06', EG='0.98', time_epoch_completed='1631290383.22', return_code='0', job_id='773338', GAL2='0.90', EG2='0.90', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='7.06e-08', ts2='5.25', photon_index='2.56' WHERE bin_id='691' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:13:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 773338: <4FGL_J1446.3+3111_daily_bin691> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin691 221.591 31.1955 418435201 418694401 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 :                                   701.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

