/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 90 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 = 7401
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0746.4+2546_daily_bin1101
RA = 116.602, Dec = 25.7678
tmin = 524707201, tmax = 524966401
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='831964', job_status='RUN', time_executed='2021-08-28 10:28:50.249483', time_epoch_executed='1630171730.25' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831964/ft1_4FGL_J0746.4+2546_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831964/ft1_4FGL_J0746.4+2546_daily_bin1101.fits outfile=/scratch/kocevski/831964/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1101.fits ra=116.602 dec=25.7678 rad=12.0 tmin=524707201.0 tmax=524966401.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.87
user 3.15
sys 0.64

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.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/831964/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1101.fits evtable="EVENTS" outfile="/scratch/kocevski/831964/ft1_filtered_4FGL_J0746.4+2546_daily_bin1101.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 1.08
user 0.32
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831964/ft1_filtered_4FGL_J0746.4+2546_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/831964/ltcube_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.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/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits
.....................!
real 13.17
user 12.11
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831964/ft1_filtered_4FGL_J0746.4+2546_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/831964/ltcube_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.fits outfile=/scratch/kocevski/831964/expmap_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.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/831964/ltcube_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.fits
.....................!
real 192.17
user 185.77
sys 5.37

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 172 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0746.4+2546 @ 116.602 25.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/831964/ft1_filtered_4FGL_J0746.4+2546_daily_bin1101.fits scfile=/scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits outfile=/scratch/kocevski/831964/cmap_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.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=116.602 yref=25.7678 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 1.39
user 0.38
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831964/ft1_filtered_4FGL_J0746.4+2546_daily_bin1101.fits scfile=/scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits outfile=/scratch/kocevski/831964/cmap_HighResolution_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.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=116.602 yref=25.7678 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 1.20
user 0.38
sys 0.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/831964/ft1_filtered_4FGL_J0746.4+2546_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831964/Model_4FGL_J0746.4+2546_daily_bin1101.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
adding source IC 443
Working on...
/scratch/kocevski/831964/ft1_filtered_4FGL_J0746.4+2546_daily_bin1101.fits.....................!
real 87.90
user 83.88
sys 1.75

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/831964/ft1_filtered_4FGL_J0746.4+2546_daily_bin1101.fits', '/scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits', expMap='/scratch/kocevski/831964/expmap_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.fits', expCube='/scratch/kocevski/831964/ltcube_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/831964/Model_4FGL_J0746.4+2546_daily_bin1101.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.4+2546'

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.783e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/831964/ft1_filtered_4FGL_J0746.4+2546_daily_bin1101.fits
Spacecraft file(s): /scratch/kocevski/831964/ft2_4FGL_J0746.4+2546_daily_bin1101.fits
Exposure map: /scratch/kocevski/831964/expmap_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.fits
Exposure cube: /scratch/kocevski/831964/ltcube_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/831964/Model_4FGL_J0746.4+2546_daily_bin1101.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) = 7461.95833544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.794       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91232       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.375       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11384E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6387       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0901       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27319E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8487       1.0000         .10000E-03   10000.    
    13 'norm      '    .76325       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.811       1.0000         .10000E-03   10000.    
    19 'norm      '    .70331       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5138       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .68983       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7461.766     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     1927 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8291        .32937E-07** at limit **
   2  norm          19.796        11.600        .17555E-06   -.80199E-05
   3  norm          .10000E-03    .29817        .38511E-07** at limit **
   4  Prefactor     .91377        4.2045        .26472E-05   -.56070E-04
   5  Prefactor     .10000E-03    8.7944       -.39024E-07** at limit **
   6  norm          11.374        2.5547       -.20435E-06    .14341E-03
   7  Prefactor     .10000E-03    27.717       -.36254E-06** at limit **
   8  norm          1.6441        3.7868        .12730E-05   -.30178E-04
   9  Prefactor     .10000E-03    11.935       -.45706E-07** at limit **
  10  Prefactor     3.0669        17.992       -.51405E-06    .38625E-05
  11  Prefactor     .10001E-03    166.04       -.40012E-05** at limit **
  12  Prefactor     3.8476        38.604       -.43350E-06   -.14760E-04
  13  norm          .74580        7.6532        .17304E-06    .63876E-04
  14  norm          .10000E-03    87.279        .69661E-06** at limit **
  15  Prefactor     .10000E-03    6.7380        .88352E-08** at limit **
  16  Prefactor     .10000E-03    8.8796       -.57404E-07** at limit **
  17  Prefactor     .10000E-03    8.4428        .15007E-06** at limit **
  18  Prefactor     13.803        18.932       -.30526E-06   -.26964E-04
  19  norm          .70466        1.1946        .44797E-06    .16432E-03
  20  Normalizat    1.5134        .18930       -.18911E-05   -.90607E-04
  21  Prefactor     .68996        .11845       -.47915E-07   -.22545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 19.7963
  norm       = 0.0001
  Prefactor  = 0.913772
  Prefactor  = 0.0001
  norm       = 11.3742
  Prefactor  = 0.000100001
  norm       = 1.64414
  Prefactor  = 0.0001
  Prefactor  = 3.06695
  Prefactor  = 0.000100009
  Prefactor  = 3.84756
  norm       = 0.745801
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.803
  norm       = 0.704663
  Normalizat = 1.51337
  Prefactor  = 0.689965
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.766     FROM HESSE     STATUS=OK           319 CALLS     2246 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8442        .16507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.796        11.610        .90025E-04   -1.4818    
   3  norm          .10000E-03    .54733        .91446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91377        4.2016        .33818E-03   -1.5517    
   5  Prefactor     .10000E-03    8.8529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.374        2.5251        .62359E-04   -1.5033    
   7  Prefactor     .10000E-03    28.366        .41350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6441        3.7142        .22518E-03   -1.5452    
   9  Prefactor     .10000E-03    11.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0669        17.470        .23071E-03   -1.5358    
  11  Prefactor     .10001E-03    167.86        .19928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8476        38.141        .20571E-03   -1.5316    
  13  norm          .74580        32.225        .45313E-02   -1.5535    
  14  norm          .10000E-03    87.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.8870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.803        18.633        .10778E-03   -1.4965    
  19  norm          .70466        1.1532        .11008E-03   -1.5540    
  20  Normalizat    1.5134        .21696        .25281E-03   -.77403    
  21  Prefactor     .68996        .13738        .23189E-03   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77102e-10
Minuit parameter uncertainties:
  1  4.70097e-06
  2  11.6115
  3  3.54281e-06
  4  3.91907
  5  2.99326e-06
  6  2.52514
  7  0.000321473
  8  3.71474
  9  7.72492e-06
  10  14.6461
  11  0.00247348
  12  24.2477
  13  9.80973
  14  0.000605833
  15  9.7773e-07
  16  1.90985e-05
  17  3.98826e-05
  18  18.6407
  19  1.15328
  20  0.217092
  21  0.137451
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.644e+00  3.715e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  6.900e-01  1.375e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.513e+00  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 116.602 25.768
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/831964/likelihoodResults_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.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): 0
logL (Free Index) = 7461.19313585
delta logL = 0.57290177443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7461.18739482
delta logL = 0.578642811862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92642       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   7461.187     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      339 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92642        1.1427        .77388E-03    .42498E-02
   2  alpha         5.0000        4.3365        .50000    ** at limit **
   3  Normalizat    1.4607        .21768        .25641E-03   -.16098E-03
   4  Prefactor     .71392        .13857        .22837E-03   -.10559E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.92642
  alpha      = 5
  Normalizat = 1.46071
  Prefactor  = 0.713922
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.187     FROM HESSE     STATUS=OK            31 CALLS      370 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92642        1.0932        .15478E-03   -1.5515    
   2  alpha         5.0000        4.2374        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4607        .21798        .51283E-04   -.78888    
   4  Prefactor     .71392        .13873        .91346E-05   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47712e-11
Minuit parameter uncertainties:
  1  1.09321
  2  1.10916e-05
  3  0.218122
  4  0.138795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831964': 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) = 7461.18739479
delta logL = 0.578642836067

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  9.264e-01  1.093e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  5.000e+00  1.109e-05  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  7.139e-01  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.461e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 116.602 25.768
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.42e-08 +/- 6.36e-08
Energy Flux (Free Index): 7.38e-06 +/- 8.69e-06

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/831964/cmap_HighResolution_524707201_524966401_4FGL_J0746.4+2546_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', comment='SUCCESS', energy_flux2='7.38e-06', dlogl='5.79e-01', photon_flux2='5.42e-08', job_status='DONE', time_completed='2021-08-28 10:40:31.369251', photon_index_error2='0.00', photon_index2='5.00', ts='0.26', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='8.69e-06', EG='1.51', time_epoch_completed='1630172431.37', return_code='0', job_id='831964', GAL2='0.71', EG2='1.46', return_code2='0', photon_flux_error2='6.36e-08', ts2='1.49', photon_index='2.62' WHERE bin_id='1101' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:40:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 831964: <4FGL_J0746.4+2546_daily_bin1101> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin1101> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 10:26:35 2021
Job was executed on host(s) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:26:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 10:26:43 2021
Terminated at Sat Aug 28 10:40:32 2021
Results reported at Sat Aug 28 10:40:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin1101 116.602 25.7678 524707201 524966401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.4+2546 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            837 sec.

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

