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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin22
RA = 176.74, Dec = 39.9775
tmin = 245030401, tmax = 245289601
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='28450', job_status='RUN', time_executed='2021-09-04 09:17:03.925659', time_epoch_executed='1630772223.93' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28450/ft1_4FGL_J1146.9+3958_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28450/ft1_4FGL_J1146.9+3958_daily_bin22.fits outfile=/scratch/kocevski/28450/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin22.fits ra=176.74 dec=39.9775 rad=12.0 tmin=245030401.0 tmax=245289601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.43
user 1.26
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.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/28450/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/28450/ft1_filtered_4FGL_J1146.9+3958_daily_bin22.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28450/ft1_filtered_4FGL_J1146.9+3958_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/28450/ltcube_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.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/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits
.....................!
real 12.98
user 12.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28450/ft1_filtered_4FGL_J1146.9+3958_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/28450/ltcube_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.fits outfile=/scratch/kocevski/28450/expmap_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.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/28450/ltcube_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.fits
.....................!
real 191.04
user 185.59
sys 5.04

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1146.9+3958 @ 176.74 39.9775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/28450/ft1_filtered_4FGL_J1146.9+3958_daily_bin22.fits scfile=/scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits outfile=/scratch/kocevski/28450/cmap_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.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=176.74 yref=39.9775 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/28450/ft1_filtered_4FGL_J1146.9+3958_daily_bin22.fits scfile=/scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits outfile=/scratch/kocevski/28450/cmap_HighResolution_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.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=176.74 yref=39.9775 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28450/ft1_filtered_4FGL_J1146.9+3958_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28450/Model_4FGL_J1146.9+3958_daily_bin22.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/28450/ft1_filtered_4FGL_J1146.9+3958_daily_bin22.fits.....................!
real 47.66
user 46.39
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28450/ft1_filtered_4FGL_J1146.9+3958_daily_bin22.fits', '/scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits', expMap='/scratch/kocevski/28450/expmap_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.fits', expCube='/scratch/kocevski/28450/ltcube_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28450/Model_4FGL_J1146.9+3958_daily_bin22.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1146.9+3958'

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  2.705e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.323e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  6.653e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/28450/ft1_filtered_4FGL_J1146.9+3958_daily_bin22.fits
Spacecraft file(s): /scratch/kocevski/28450/ft2_4FGL_J1146.9+3958_daily_bin22.fits
Exposure map: /scratch/kocevski/28450/expmap_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.fits
Exposure cube: /scratch/kocevski/28450/ltcube_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28450/Model_4FGL_J1146.9+3958_daily_bin22.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) = 5297.71211559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.0706       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.373       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.218       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8493       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11215E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5030       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .46969       1.0000         .10000E-03   10000.    
    16 'norm      '    10.497       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12799E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0374       1.0000         .10000E-03   10000.    
    21 'norm      '    .35266       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    32.356       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6194       1.0000         .10000E-03   10000.    
    25 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    74.769       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0199       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1087       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5297.699     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3481 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.638        .51621E-06** at limit **
   2  norm          1.0706        .36187        .53826E-08   -.24358E-03
   3  Prefactor     20.376        17.384       -.35930E-07   -.43425E-04
   4  Prefactor     .10000E-03    14.218        .15344E-06** at limit **
   5  Prefactor     54.200        78.644       -.17492E-05   -.35525E-04
   6  norm          3.8498        7.9817        .16852E-06   -.38878E-04
   7  norm          .10000E-03    18.328       -.77996E-06** at limit **
   8  Prefactor     .10000E-03    1.4388        .51388E-06** at limit **
   9  Prefactor     5.5275        37.683       -.15240E-05   -.61622E-04
  10  Prefactor     .10000E-03    27.176       -.11904E-05** at limit **
  11  norm          1.5273        2.3682        .11104E-06   -.30049E-03
  12  Prefactor     .10000E-03    8.4111        .15154E-07** at limit **
  13  Prefactor     .10000E-03    1.9725        .17644E-07** at limit **
  14  Prefactor     .10000E-03    19.792        .35978E-06** at limit **
  15  norm          .46646        .97332        .35005E-06    .12426E-03
  16  norm          10.491        11.107       -.60491E-07   -.25097E-04
  17  Prefactor     .10000E-03    10.915        .10052E-07** at limit **
  18  Prefactor     .10000E-03    1.4479        .84301E-08** at limit **
  19  Prefactor     .10000E-03    113.13       -.18994E-06** at limit **
  20  Prefactor     6.0346        21.944        .69645E-06   -.35532E-05
  21  norm          .35281        .98646        .41893E-06   -.21039E-03
  22  Prefactor     .10000E-03    23.459        .12761E-05** at limit **
  23  norm          32.357        6.8862       -.26654E-07   -.72233E-04
  24  Prefactor     1.6201        6.2552        .14325E-05   -.11244E-03
  25  norm          .10000E-03    6.5770       -.19572E-06** at limit **
  26  Prefactor     74.747        36.236       -.68607E-06   -.96254E-04
  27  Normalizat    1.0200        .18697       -.20961E-06   -.16805E-03
  28  Prefactor     1.1086        .22382       -.74079E-06   -.85701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.07065
  Prefactor  = 20.3762
  Prefactor  = 0.0001
  Prefactor  = 54.2002
  norm       = 3.84985
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.52752
  Prefactor  = 0.0001
  norm       = 1.52731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.466456
  norm       = 10.4907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.03461
  norm       = 0.352815
  Prefactor  = 0.0001
  norm       = 32.3566
  Prefactor  = 1.62012
  norm       = 0.0001
  Prefactor  = 74.7472
  Normalizat = 1.01996
  Prefactor  = 1.10864
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.699     FROM HESSE     STATUS=OK           517 CALLS     3998 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0706        .36242        .23964E-04   -1.5501    
   3  Prefactor     20.376        17.394        .88738E-04   -1.4805    
   4  Prefactor     .10000E-03    14.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.200        79.406        .54474E-04   -1.4234    
   6  norm          3.8498        7.9580        .20569E-03   -1.5316    
   7  norm          .10000E-03    18.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0032        .15561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5275        34.156        .17128E-03   -1.5238    
  10  Prefactor     .10000E-03    27.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5273        2.3157        .12876E-03   -1.5461    
  12  Prefactor     .10000E-03    8.4729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9822        .99801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .46646        .89653        .99893E-03   -1.5571    
  16  norm          10.491        11.082        .12367E-03   -1.5060    
  17  Prefactor     .10000E-03    10.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4554        .85434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    113.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0346        21.926        .16341E-03   -1.5217    
  21  norm          .35281        .97720        .11658E-03   -1.5589    
  22  Prefactor     .10000E-03    23.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          32.357        6.8794        .70443E-04   -1.4570    
  24  Prefactor     1.6201        6.2406        .33261E-03   -1.5453    
  25  norm          .10000E-03    6.5875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     74.747        36.616        .46434E-04   -1.3977    
  27  Normalizat    1.0200        .21934        .24516E-03   -.92365    
  28  Prefactor     1.1086        .26213        .28571E-03   -.89191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63429e-10
Minuit parameter uncertainties:
  1  8.33009e-05
  2  0.362423
  3  17.3982
  4  1.38034e-05
  5  79.5614
  6  7.96016
  7  7.06053e-05
  8  3.27936e-05
  9  27.504
  10  0.000100849
  11  2.3158
  12  5.24311e-06
  13  7.49535e-07
  14  2.37596e-05
  15  0.896555
  16  11.084
  17  3.38903e-06
  18  3.04165e-07
  19  0.000128514
  20  21.955
  21  0.977245
  22  0.00011779
  23  6.8796
  24  6.24306
  25  1.69915e-05
  26  36.6267
  27  0.219535
  28  0.262432
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  4.665e-01  8.966e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.323e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  6.653e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.109e+00  2.624e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.020e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 176.740 39.977
Photon Flux Upper Limit: 9.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28450/likelihoodResults_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.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) = 5297.68943221
delta logL = 0.00911679565343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5297.42210435
delta logL = 0.276444655473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52367E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .95847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   5297.422     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      353 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52307E-01    .61462E-01    .18581E-03    .13657E-02
   2  alpha         5.0000        3.5776        .80422E-01** at limit **
   3  Normalizat    .95902        .22420        .25195E-03    .18049E-05
   4  Prefactor     1.1660        .26498        .27965E-03    .12338E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0523071
  alpha      = 5
  Normalizat = 0.959021
  Prefactor  = 1.16598
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.422     FROM HESSE     STATUS=OK            25 CALLS      378 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52307E-01    .60568E-01    .74325E-05   -1.5662    
   2  alpha         5.0000        3.5704        .32169E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95902        .22432        .10078E-04   -.94416    
   4  Prefactor     1.1660        .26524        .11186E-04   -.87385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93375e-08
Minuit parameter uncertainties:
  1  0.0605685
  2  0.000708046
  3  0.224538
  4  0.26554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28450': 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) = 5297.42210116
delta logL = 0.276447843811

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  5.231e-02  6.057e-02  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  5.000e+00  7.080e-04  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  6.653e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.166e+00  2.655e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.590e-01  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 176.740 39.977

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/28450/cmap_HighResolution_245030401_245289601_4FGL_J1146.9+3958_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', job_status='DONE', photon_flux_upper_limit='9.63e-08', time_completed='2021-09-04 09:30:29.354024', job_id='28450', GAL2='1.17', fit_tolerance='1e-08', EG2='0.96', EG='1.02', time_epoch_completed='1630773029.35', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.76e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='22' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:30:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 28450: <4FGL_J1146.9+3958_daily_bin22> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin22> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 09:16:33 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:16:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 09:16:34 2021
Terminated at Sat Sep  4 09:30:30 2021
Results reported at Sat Sep  4 09:30:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin22 176.74 39.9775 245030401 245289601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1146.9+3958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   804.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             302.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

