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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin224
RA = 221.591, Dec = 31.1955
tmin = 297388801, tmax = 297648001
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='769227', job_status='RUN', time_executed='2021-09-10 08:46:32.826882', time_epoch_executed='1631288792.83' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769227/ft1_4FGL_J1446.3+3111_daily_bin224.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769227/ft2_4FGL_J1446.3+3111_daily_bin224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769227/ft1_4FGL_J1446.3+3111_daily_bin224.fits outfile=/scratch/kocevski/769227/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin224.fits ra=221.591 dec=31.1955 rad=12.0 tmin=297388801.0 tmax=297648001.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.64
user 3.43
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769227/ft1_filtered_4FGL_J1446.3+3111_daily_bin224.fits" evtable="EVENTS" scfile=/scratch/kocevski/769227/ft2_4FGL_J1446.3+3111_daily_bin224.fits sctable="SC_DATA" outfile=/scratch/kocevski/769227/ltcube_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.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/769227/ft2_4FGL_J1446.3+3111_daily_bin224.fits
.....................!
real 11.80
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769227/ft1_filtered_4FGL_J1446.3+3111_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/769227/ft2_4FGL_J1446.3+3111_daily_bin224.fits sctable="SC_DATA" expcube=/scratch/kocevski/769227/ltcube_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.fits outfile=/scratch/kocevski/769227/expmap_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.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/769227/ltcube_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.fits
.....................!
real 189.27
user 184.99
sys 3.91

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/769227/ft1_filtered_4FGL_J1446.3+3111_daily_bin224.fits scfile=/scratch/kocevski/769227/ft2_4FGL_J1446.3+3111_daily_bin224.fits outfile=/scratch/kocevski/769227/cmap_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769227/ft1_filtered_4FGL_J1446.3+3111_daily_bin224.fits scfile=/scratch/kocevski/769227/ft2_4FGL_J1446.3+3111_daily_bin224.fits outfile=/scratch/kocevski/769227/cmap_HighResolution_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/769227/ft1_filtered_4FGL_J1446.3+3111_daily_bin224.fits', '/scratch/kocevski/769227/ft2_4FGL_J1446.3+3111_daily_bin224.fits', expMap='/scratch/kocevski/769227/expmap_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.fits', expCube='/scratch/kocevski/769227/ltcube_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/769227/Model_4FGL_J1446.3+3111_daily_bin224.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/769227/ft1_filtered_4FGL_J1446.3+3111_daily_bin224.fits
Spacecraft file(s): /scratch/kocevski/769227/ft2_4FGL_J1446.3+3111_daily_bin224.fits
Exposure map: /scratch/kocevski/769227/expmap_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.fits
Exposure cube: /scratch/kocevski/769227/ltcube_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/769227/Model_4FGL_J1446.3+3111_daily_bin224.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7299.32378951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.757       1.0000         .10000E-03   10000.    
     8 'norm      '    7.2260       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3574       1.0000         .10000E-03   10000.    
    11 'norm      '    17.445       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .73077       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9651       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8103       1.0000         .10000E-03   10000.    
    19 'norm      '    .72251       1.0000         .10000E-03   10000.    
    20 'Prefactor '    145.33       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.654       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4033       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1396       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90829       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=   7299.287     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3252 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9346       -.16522E-07** at limit **
   2  Prefactor     .10000E-03    25.028       -.12084E-05** at limit **
   3  norm          .10000E-03    .90860       -.27250E-08** at limit **
   4  Prefactor     4.5179        12.006        .68820E-06    .28678E-04
   5  Prefactor     .10000E-03    12.349       -.44362E-06** at limit **
   6  Prefactor     .10000E-03    1.0170       -.13065E-07** at limit **
   7  norm          10.757        10.798       -.57969E-07    .15003E-04
   8  norm          7.2255        2.9240       -.20480E-07    .27265E-04
   9  Prefactor     .10000E-03    10.368        .15873E-06** at limit **
  10  norm          3.3569        3.1980        .10719E-06   -.23247E-04
  11  norm          17.446        7.6021       -.39493E-07   -.66654E-04
  12  Prefactor     .10000E-03    21.705        .11632E-05** at limit **
  13  norm          .73013        6.5389        .11646E-05   -.44907E-04
  14  Prefactor     .10000E-03    21.765        .11466E-05** at limit **
  15  norm          .10000E-03    2.2498        .53092E-07** at limit **
  16  Prefactor     1.9679        13.380        .64327E-05   -.11542E-03
  17  Prefactor     5.6903        7.2763       -.39488E-06   -.10836E-03
  18  Prefactor     3.8101        4.1432       -.57168E-07    .13192E-04
  19  norm          .71748        1.4562        .64870E-06    .88810E-03
  20  Prefactor     145.38        74.448       -.39176E-05    .61980E-04
  21  Prefactor     .10000E-03    3.8851       -.69654E-07** at limit **
  22  norm          11.661        2.9680       -.42156E-06   -.71614E-03
  23  Prefactor     3.3537        27.524        .68954E-05    .73532E-05
  24  Prefactor     .10000E-03    32.566       -.41608E-05** at limit **
  25  Prefactor     .10000E-03    42.950        .18693E-05** at limit **
  26  Normalizat    1.1398        .17808       -.10531E-05   -.12505E-03
  27  Prefactor     .90824        .15726        .20751E-06   -.13090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.51789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7568
  norm       = 7.22551
  Prefactor  = 0.0001
  norm       = 3.35693
  norm       = 17.4465
  Prefactor  = 0.0001
  norm       = 0.730129
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.96794
  Prefactor  = 5.69029
  Prefactor  = 3.81009
  norm       = 0.717479
  Prefactor  = 145.382
  Prefactor  = 0.0001
  norm       = 11.6612
  Prefactor  = 3.35367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13979
  Prefactor  = 0.908235
 **********
 **   18 **HESSE 
 **********

 FCN=   7299.287     FROM HESSE     STATUS=OK           490 CALLS     3742 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9386        .11604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .91017        .79516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5179        11.972        .18961E-03   -1.5283    
   5  Prefactor     .10000E-03    12.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.0222        .84119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.757        10.782        .12216E-03   -1.5052    
   8  norm          7.2255        2.9228        .89755E-04   -1.5170    
   9  Prefactor     .10000E-03    10.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3569        3.1909        .14405E-03   -1.5342    
  11  norm          17.446        7.6147        .95892E-04   -1.4872    
  12  Prefactor     .10000E-03    21.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .73013        6.6889        .40999E-03   -1.5537    
  14  Prefactor     .10000E-03    21.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2503        .12515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9679        13.154        .14793E-02   -1.5427    
  17  Prefactor     5.6903        7.1040        .16853E-03   -1.5231    
  18  Prefactor     3.8101        4.1466        .17655E-03   -1.5318    
  19  norm          .71748        1.2887        .13262E-02   -1.5539    
  20  Prefactor     145.38        73.919        .16712E-03   -1.3291    
  21  Prefactor     .10000E-03    3.8989        .16444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.661        2.9174        .49986E-04   -1.5025    
  23  Prefactor     3.3537        26.760        .21930E-03   -1.5342    
  24  Prefactor     .10000E-03    32.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    43.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1398        .20812        .26263E-03   -.88484    
  27  Prefactor     .90824        .18355        .26159E-03   -.95854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64658e-10
Minuit parameter uncertainties:
  1  9.4157e-09
  2  7.24255e-05
  3  1.77014e-07
  4  11.9783
  5  7.58923e-06
  6  8.03903e-08
  7  10.7839
  8  2.9229
  9  7.81548e-06
  10  3.19107
  11  7.61517
  12  6.77852e-05
  13  4.42019
  14  6.28368e-05
  15  1.61126e-07
  16  10.1787
  17  7.10502
  18  4.14691
  19  1.28874
  20  73.9657
  21  4.5718e-06
  22  2.91743
  23  18.9581
  24  3.86472e-05
  25  0.000121018
  26  0.208271
  27  0.183671
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  6.284e-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:  9.082e-01  1.837e-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.140e+00  2.083e-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: 7.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769227/likelihoodResults_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.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) = 7299.28763506
delta logL = -0.000218695513468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7299.28741653
delta logL = -1.5964906197e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4653       1.0000          .0000       10.000    
     3 'Normalizat'    1.1398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90824       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.

 FCN=   7299.287     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2041.2        .90712E-02** at limit **
   2  Index         2.4816        8.7472        .50000       -.72241E-05
   3  Normalizat    1.1398        .53472E-01    .59385E-01    .13168E-04
   4  Prefactor     .90824        .48320E-01    .45110E-01    .21347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48161
  Normalizat = 1.13979
  Prefactor  = 0.908236
 **********
 **   18 **HESSE 
 **********

 FCN=   7299.287     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4816        5.4993        .50000       -.52785    
   3  Normalizat    1.1398        .19785        .26263E-03   -.88484    
   4  Prefactor     .90824        .17906        .26159E-03   -.95854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95951e-10
Minuit parameter uncertainties:
  1  3.64756e-05
  2  7.92015
  3  0.197982
  4  0.179172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769227': 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) = 7299.2874165
delta logL = -1.28842657432e-07

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.648e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.482e+00  7.920e+00  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.082e-01  1.792e-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.140e+00  1.980e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/769227/cmap_HighResolution_297388801_297648001_4FGL_J1446.3+3111_daily_bin224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-10 08:59:17.639278', job_id='769227', GAL2='0.91', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631289557.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='224' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 08:59:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 769227: <4FGL_J1446.3+3111_daily_bin224> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin224> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 08:46:14 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:46:16 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:46:16 2021
Terminated at Fri Sep 10 08:59:20 2021
Results reported at Fri Sep 10 08:59:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin224 221.591 31.1955 297388801 297648001 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 :                                   761.25 sec.
    Max Memory :                                 1129 MB
    Average Memory :                             332.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            786 sec.

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

