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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1327
RA = 221.591, Dec = 31.1955
tmin = 583286401, tmax = 583545601
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='775328', job_status='RUN', time_executed='2021-09-10 09:09:19.948298', time_epoch_executed='1631290159.95' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775328

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775328/ft1_4FGL_J1446.3+3111_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775328/ft2_4FGL_J1446.3+3111_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775328/ft1_4FGL_J1446.3+3111_daily_bin1327.fits outfile=/scratch/kocevski/775328/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1327.fits ra=221.591 dec=31.1955 rad=12.0 tmin=583286401.0 tmax=583545601.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.51
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775328/ft2_4FGL_J1446.3+3111_daily_bin1327.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/775328/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1327.fits evtable="EVENTS" outfile="/scratch/kocevski/775328/ft1_filtered_4FGL_J1446.3+3111_daily_bin1327.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/775328/ft1_filtered_4FGL_J1446.3+3111_daily_bin1327.fits" evtable="EVENTS" scfile=/scratch/kocevski/775328/ft2_4FGL_J1446.3+3111_daily_bin1327.fits sctable="SC_DATA" outfile=/scratch/kocevski/775328/ltcube_583286401_583545601_4FGL_J1446.3+3111_daily_bin1327.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/775328/ft2_4FGL_J1446.3+3111_daily_bin1327.fits
.....................!
real 11.81
user 11.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775328/ft1_filtered_4FGL_J1446.3+3111_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/775328/ft2_4FGL_J1446.3+3111_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/775328/ltcube_583286401_583545601_4FGL_J1446.3+3111_daily_bin1327.fits outfile=/scratch/kocevski/775328/expmap_583286401_583545601_4FGL_J1446.3+3111_daily_bin1327.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/775328/ltcube_583286401_583545601_4FGL_J1446.3+3111_daily_bin1327.fits
.....................!
real 189.54
user 184.59
sys 4.59

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/775328/ft1_filtered_4FGL_J1446.3+3111_daily_bin1327.fits scfile=/scratch/kocevski/775328/ft2_4FGL_J1446.3+3111_daily_bin1327.fits outfile=/scratch/kocevski/775328/cmap_583286401_583545601_4FGL_J1446.3+3111_daily_bin1327.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775328/ft1_filtered_4FGL_J1446.3+3111_daily_bin1327.fits scfile=/scratch/kocevski/775328/ft2_4FGL_J1446.3+3111_daily_bin1327.fits outfile=/scratch/kocevski/775328/cmap_HighResolution_583286401_583545601_4FGL_J1446.3+3111_daily_bin1327.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.212       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.349       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6993       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9023       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18988E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9341       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.076       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.645       1.0000         .10000E-03   10000.    
    15 'norm      '    11.045       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89082       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67164E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53143E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0307       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6950       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3390       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13422E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0233       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .70835       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1179       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=   6433.650     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3300 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8263        .65062E-08** at limit **
   2  Prefactor     .10000E-03    10.459        .10089E-06** at limit **
   3  norm          .10000E-03    1.2030        .42015E-08** at limit **
   4  Prefactor     27.218        14.448       -.14296E-06   -.27935E-04
   5  Prefactor     .10000E-03    10.089        .97721E-06** at limit **
   6  Prefactor     36.351        6.3532       -.94429E-08   -.57284E-04
   7  norm          3.6983        7.3659        .22242E-05   -.93322E-03
   8  norm          3.9019        2.2727        .10144E-07    .79922E-05
   9  Prefactor     .10000E-03    8.9971       -.15068E-07** at limit **
  10  norm          .10000E-03    1.6537        .44888E-07** at limit **
  11  norm          2.9344        3.7377        .12036E-06   -.64102E-04
  12  Prefactor     22.080        22.141        .15702E-05    .10171E-03
  13  norm          .10000E-03    1.2756       -.26093E-07** at limit **
  14  Prefactor     72.651        37.539        .28596E-05    .18782E-03
  15  norm          11.046        7.9712       -.31596E-06   -.10635E-03
  16  Prefactor     .85036        11.166        .81067E-06   -.25401E-03
  17  Prefactor     .10000E-03    5.0714       -.17828E-06** at limit **
  18  Prefactor     .10000E-03    4.8363       -.38861E-06** at limit **
  19  norm          1.0291        1.2881       -.32867E-07   -.40713E-03
  20  Prefactor     .10000E-03    41.008        .48425E-06** at limit **
  21  Prefactor     1.6947        3.9613       -.26707E-06   -.23648E-03
  22  norm          2.3390        1.2402        .27606E-07   -.12555E-02
  23  Prefactor     .10001E-03    5.7878        .63432E-06** at limit **
  24  Prefactor     6.0146        30.040       -.88817E-05   -.15564E-03
  25  Prefactor     .10000E-03    7.1508        .20052E-07** at limit **
  26  Normalizat    .70791        .17621       -.17081E-05   -.81934E-04
  27  Prefactor     1.1183        .16063        .84883E-06   -.20811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.2178
  Prefactor  = 0.0001
  Prefactor  = 36.351
  norm       = 3.69831
  norm       = 3.9019
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.9344
  Prefactor  = 22.0804
  norm       = 0.0001
  Prefactor  = 72.6512
  norm       = 11.0455
  Prefactor  = 0.850359
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 1.02913
  Prefactor  = 0.0001
  Prefactor  = 1.69471
  norm       = 2.339
  Prefactor  = 0.000100006
  Prefactor  = 6.01459
  Prefactor  = 0.0001
  Normalizat = 0.707906
  Prefactor  = 1.11832
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.650     FROM HESSE     STATUS=OK           498 CALLS     3798 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8318        .10585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.2092        .85895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.218        14.938        .76797E-04   -1.4664    
   5  Prefactor     .10000E-03    10.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.351        6.3736        .66473E-04   -1.4501    
   7  norm          3.6983        10.892        .10499E-02   -1.5323    
   8  norm          3.9019        2.2722        .89556E-04   -1.5313    
   9  Prefactor     .10000E-03    9.0102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.6978        .20051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9344        3.7225        .16930E-03   -1.5365    
  12  Prefactor     22.080        22.159        .85249E-04   -1.4768    
  13  norm          .10000E-03    1.2792        .88459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     72.651        37.702        .47103E-04   -1.4001    
  15  norm          11.046        7.9933        .12055E-03   -1.5043    
  16  Prefactor     .85036        45.556        .48099E-02   -1.5524    
  17  Prefactor     .10000E-03    25.082        .33653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.459        .33972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0291        1.1372        .94088E-03   -1.5505    
  20  Prefactor     .10000E-03    41.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6947        3.9372        .23773E-03   -1.5448    
  22  norm          2.3390        1.1505        .57275E-04   -1.5402    
  23  Prefactor     .10001E-03    19.432        .34305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.0146        31.325        .16360E-03   -1.5217    
  25  Prefactor     .10000E-03    7.1534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .70791        .20036        .28115E-03   -1.0358    
  27  Prefactor     1.1183        .18342        .22007E-03   -.88883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45955e-09
Minuit parameter uncertainties:
  1  1.45919e-06
  2  1.82769e-06
  3  7.62239e-08
  4  14.9404
  5  3.97688e-05
  6  6.37368
  7  10.8981
  8  2.27225
  9  4.6592e-08
  10  4.13283e-06
  11  3.72276
  12  22.1674
  13  3.6039e-07
  14  37.7147
  15  7.99409
  16  12.4574
  17  0.000369277
  18  0.000324455
  19  1.13721
  20  6.06041e-05
  21  3.93785
  22  1.15047
  23  0.000705841
  24  27.4748
  25  2.36509e-06
  26  0.200568
  27  0.183521
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  7.265e+01  3.771e+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:  1.118e+00  1.835e-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:  7.079e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.87
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 7.89e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.12e-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) = 6433.64460755
delta logL = 0.00495561826028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6433.64127505
delta logL = 0.00828812185682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.325       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6255       1.0000          .0000       10.000    
     3 'Normalizat'    .70255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1216       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=   6433.641     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.319        46.462        .48210E-04    .59034E-03
   2  Index         2.6254        .55945        .57939E-02    .28010E-03
   3  Normalizat    .70281        .19102        .28207E-03   -.28689E-03
   4  Prefactor     1.1214        .18022        .21980E-03   -.43804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.3195
  Index      = 2.62541
  Normalizat = 0.702814
  Prefactor  = 1.12137
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.641     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.319        44.709        .96420E-05   -1.4041    
   2  Index         2.6254        .53764        .23176E-03   -.49487    
   3  Normalizat    .70281        .19098        .11283E-04   -1.0378    
   4  Prefactor     1.1214        .18024        .43961E-04   -.88787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09077e-09
Minuit parameter uncertainties:
  1  44.7302
  2  0.538991
  3  0.19116
  4  0.18034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775328': 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) = 6433.64127405
delta logL = 0.00828911331701

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  6.932e+01  4.473e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.625e+00  5.390e-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:  1.121e+00  1.803e-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:  7.028e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.89
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.63 +/- 0.54
Photon Flux (Free Index): 8.28e-08 +/- 5.13e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.11e-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/775328/cmap_HighResolution_583286401_583545601_4FGL_J1446.3+3111_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.89e-08', energy_flux2='2.12e-05', photon_flux_error='4.09e-08', dlogl='8.29e-03', energy_flux='2.16e-05', photon_flux2='8.28e-08', job_status='DONE', time_completed='2021-09-10 09:20:10.556599', photon_index_error2='0.54', photon_index2='2.63', ts='7.87', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='0.71', time_epoch_completed='1631290810.56', return_code='0', job_id='775328', GAL2='1.12', EG2='0.70', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='5.13e-08', ts2='7.89', photon_index='2.56' WHERE bin_id='1327' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:20:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 775328: <4FGL_J1446.3+3111_daily_bin1327> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1327> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 10 09:06:34 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:06:36 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:06:36 2021
Terminated at Fri Sep 10 09:20:11 2021
Results reported at Fri Sep 10 09:20:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1327 221.591 31.1955 583286401 583545601 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            817 sec.

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

