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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin39
RA = 176.74, Dec = 39.9775
tmin = 249436801, tmax = 249696001
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='28476', job_status='RUN', time_executed='2021-09-04 09:18:10.982017', time_epoch_executed='1630772290.98' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28476

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28476/ft1_4FGL_J1146.9+3958_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28476/ft2_4FGL_J1146.9+3958_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28476/ft1_4FGL_J1146.9+3958_daily_bin39.fits outfile=/scratch/kocevski/28476/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin39.fits ra=176.74 dec=39.9775 rad=12.0 tmin=249436801.0 tmax=249696001.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.44
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28476/ft2_4FGL_J1146.9+3958_daily_bin39.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/28476/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/28476/ft1_filtered_4FGL_J1146.9+3958_daily_bin39.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.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28476/ft1_filtered_4FGL_J1146.9+3958_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/28476/ft2_4FGL_J1146.9+3958_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/28476/ltcube_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.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/28476/ft2_4FGL_J1146.9+3958_daily_bin39.fits
.....................!
real 12.57
user 12.16
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28476/ft1_filtered_4FGL_J1146.9+3958_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/28476/ft2_4FGL_J1146.9+3958_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/28476/ltcube_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.fits outfile=/scratch/kocevski/28476/expmap_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.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/28476/ltcube_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.fits
.....................!
real 191.09
user 184.69
sys 6.02

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/28476/ft1_filtered_4FGL_J1146.9+3958_daily_bin39.fits scfile=/scratch/kocevski/28476/ft2_4FGL_J1146.9+3958_daily_bin39.fits outfile=/scratch/kocevski/28476/cmap_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28476/ft1_filtered_4FGL_J1146.9+3958_daily_bin39.fits scfile=/scratch/kocevski/28476/ft2_4FGL_J1146.9+3958_daily_bin39.fits outfile=/scratch/kocevski/28476/cmap_HighResolution_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.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.57
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28476/ft1_filtered_4FGL_J1146.9+3958_daily_bin39.fits', '/scratch/kocevski/28476/ft2_4FGL_J1146.9+3958_daily_bin39.fits', expMap='/scratch/kocevski/28476/expmap_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.fits', expCube='/scratch/kocevski/28476/ltcube_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28476/Model_4FGL_J1146.9+3958_daily_bin39.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/28476/ft1_filtered_4FGL_J1146.9+3958_daily_bin39.fits
Spacecraft file(s): /scratch/kocevski/28476/ft2_4FGL_J1146.9+3958_daily_bin39.fits
Exposure map: /scratch/kocevski/28476/expmap_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.fits
Exposure cube: /scratch/kocevski/28476/ltcube_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28476/Model_4FGL_J1146.9+3958_daily_bin39.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) = 4772.83954012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6254       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5883       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.8379       1.0000         .10000E-03   10000.    
     7 'norm      '    .10261E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11768E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.519       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12572E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13333E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35472       1.0000         .10000E-03   10000.    
    16 'norm      '    .12098E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.005       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.520       1.0000         .10000E-03   10000.    
    21 'norm      '    4.0259       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2660       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1655       1.0000         .10000E-03   10000.    
    25 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .75742       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2054       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=   4772.729     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3043 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6436        795.53        .99063E-04   -.10903E-04
   2  norm          1.5883        .37284        .28152E-07   -.89005E-03
   3  Prefactor     .10000E-03    4.6008       -.50927E-06** at limit **
   4  Prefactor     .10000E-03    4.7589        .25869E-06** at limit **
   5  Prefactor     .10000E-03    55.379       -.14003E-04** at limit **
   6  norm          8.8385        9.3242       -.49641E-07   -.71647E-04
   7  norm          .10001E-03    183.08       -.17513E-03** at limit **
   8  Prefactor     .10000E-03    1.5322       -.41529E-06** at limit **
   9  Prefactor     .10000E-03    105.34        .12156E-03** at limit **
  10  Prefactor     39.520        20.316       -.95714E-10   -.34265E-04
  11  norm          .10000E-03    1.4279       -.44756E-07** at limit **
  12  Prefactor     .10000E-03    4.2000        .88687E-07** at limit **
  13  Prefactor     .10000E-03    2.9296       -.13890E-06** at limit **
  14  Prefactor     .10000E-03    54.893       -.15429E-04** at limit **
  15  norm          .35371        .88700        .13378E-06   -.10798E-02
  16  norm          .10000E-03    12.094       -.20355E-05** at limit **
  17  Prefactor     .10000E-03    7.9328       -.21401E-05** at limit **
  18  Prefactor     .10003E-03    3.7183        .20131E-05** at limit **
  19  Prefactor     30.973        31.399       -.70422E-05   -.51257E-06
  20  Prefactor     16.486        21.575        .50860E-05   -.34489E-03
  21  norm          4.0262        1.5135        .12754E-06   -.10429E-03
  22  Prefactor     .10000E-03    23.219        .39572E-05** at limit **
  23  norm          3.2658        3.4851       -.59827E-07   -.30594E-03
  24  Prefactor     6.1704        8.9157        .87554E-07   -.15126E-03
  25  norm          .10000E-03    6.2030       -.49219E-05** at limit **
  26  Prefactor     .10000E-03    10.720        .47527E-05** at limit **
  27  Normalizat    .75736        .18460       -.18928E-05   -.40013E-03
  28  Prefactor     1.2056        .21883       -.40247E-06   -.33478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64363
  norm       = 1.58828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.83851
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 39.5198
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.353707
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 30.9734
  Prefactor  = 16.4859
  norm       = 4.02615
  Prefactor  = 0.0001
  norm       = 3.26584
  Prefactor  = 6.17037
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.757357
  Prefactor  = 1.20556
 **********
 **   18 **HESSE 
 **********

 FCN=   4772.729     FROM HESSE     STATUS=OK           515 CALLS     3558 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6436        796.24        .33183E-03   -1.5452    
   2  norm          1.5883        .37338        .19789E-04   -1.5456    
   3  Prefactor     .10000E-03    4.6063        .14471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7607        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.8385        9.3122        .13483E-03   -1.5113    
   7  norm          .10001E-03    184.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3758        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    106.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.520        20.267        .63761E-04   -1.4450    
  11  norm          .10000E-03    1.4708        .16090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2028        .13823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.149        .22525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .35371        .85475        .96388E-04   -1.5589    
  16  norm          .10000E-03    12.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    6.4321        .24387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.973        31.297        .71957E-04   -1.4594    
  20  Prefactor     16.486        20.664        .98540E-04   -1.4896    
  21  norm          4.0262        1.5134        .50390E-04   -1.5307    
  22  Prefactor     .10000E-03    23.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2658        3.4757        .12895E-03   -1.5347    
  24  Prefactor     6.1704        8.9018        .16168E-03   -1.5211    
  25  norm          .10000E-03    6.2446        .16804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .75736        .21499        .25501E-03   -1.0167    
  28  Prefactor     1.2056        .25908        .25431E-03   -.86160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73557e-09
Minuit parameter uncertainties:
  1  73.3531
  2  0.373376
  3  6.3244e-07
  4  8.87561e-07
  5  2.53664e-05
  6  9.31372
  7  0.00267006
  8  4.97686e-05
  9  0.00139776
  10  20.2709
  11  1.24692e-05
  12  3.07595e-06
  13  0.000511545
  14  0.000201269
  15  0.854783
  16  9.89719e-05
  17  7.56436e-06
  18  0.00086763
  19  31.3133
  20  20.6732
  21  1.51338
  22  3.21125e-05
  23  3.47591
  24  8.90366
  25  8.6634e-07
  26  1.23148e-06
  27  0.215234
  28  0.259349
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  3.537e-01  8.548e-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.206e+00  2.593e-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:  7.574e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/28476/likelihoodResults_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.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) = 4772.7133082
delta logL = 0.0159156230702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4772.58676996
delta logL = 0.142453857989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33650E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .71922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2431       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4772.587     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      342 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33666E-01    .63778E-01    .19213E-03    .93306E-03
   2  alpha         5.0000        4.4588        .50000    ** at limit **
   3  Normalizat    .71924        .21861        .26116E-03    .54762E-04
   4  Prefactor     1.2430        .26334        .25104E-03    .62041E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0336663
  alpha      = 5
  Normalizat = 0.719239
  Prefactor  = 1.24301
 **********
 **   18 **HESSE 
 **********

 FCN=   4772.587     FROM HESSE     STATUS=OK            31 CALLS      373 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33666E-01    .60137E-01    .76854E-05   -1.5671    
   2  alpha         5.0000        4.3290        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .71924        .21916        .10447E-04   -1.0314    
   4  Prefactor     1.2430        .26381        .10042E-04   -.85018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0984e-11
Minuit parameter uncertainties:
  1  0.0601375
  2  5.65918e-05
  3  0.219428
  4  0.264087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28476': 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) = 4772.58676984
delta logL = 0.142453980366

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  3.367e-02  6.014e-02  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  5.000e+00  5.659e-05  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.243e+00  2.641e-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:  7.192e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/28476/cmap_HighResolution_249436801_249696001_4FGL_J1146.9+3958_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-05', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-04 09:30:02.890795', job_id='28476', GAL2='1.24', fit_tolerance='1e-08', EG2='0.72', EG='0.76', time_epoch_completed='1630773002.89', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.42e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='39' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:30:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 28476: <4FGL_J1146.9+3958_daily_bin39> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin39> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 09:16:36 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:16:37 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:37 2021
Terminated at Sat Sep  4 09:30:03 2021
Results reported at Sat Sep  4 09:30:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin39 176.74 39.9775 249436801 249696001 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 :                                   711.17 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             314.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

