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


Performing analysis on: 4FGL_J0746.4+2546_daily_bin1010
RA = 116.602, Dec = 25.7678
tmin = 501120001, tmax = 501379201
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='831818', job_status='RUN', time_executed='2021-08-28 10:28:40.875674', time_epoch_executed='1630171720.88' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831818

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831818/ft1_4FGL_J0746.4+2546_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831818/ft1_4FGL_J0746.4+2546_daily_bin1010.fits outfile=/scratch/kocevski/831818/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1010.fits ra=116.602 dec=25.7678 rad=12.0 tmin=501120001.0 tmax=501379201.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.58
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.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/831818/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1010.fits evtable="EVENTS" outfile="/scratch/kocevski/831818/ft1_filtered_4FGL_J0746.4+2546_daily_bin1010.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831818/ft1_filtered_4FGL_J0746.4+2546_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/831818/ltcube_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.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/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.fits
.....................!
real 11.76
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831818/ft1_filtered_4FGL_J0746.4+2546_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/831818/ltcube_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.fits outfile=/scratch/kocevski/831818/expmap_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.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/831818/ltcube_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.fits
.....................!
real 190.05
user 185.03
sys 3.77

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/831818/ft1_filtered_4FGL_J0746.4+2546_daily_bin1010.fits scfile=/scratch/kocevski/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.fits outfile=/scratch/kocevski/831818/cmap_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.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 0.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831818/ft1_filtered_4FGL_J0746.4+2546_daily_bin1010.fits scfile=/scratch/kocevski/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.fits outfile=/scratch/kocevski/831818/cmap_HighResolution_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.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 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/831818/ft1_filtered_4FGL_J0746.4+2546_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831818/Model_4FGL_J0746.4+2546_daily_bin1010.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/831818/ft1_filtered_4FGL_J0746.4+2546_daily_bin1010.fits....................!
real 106.09
user 100.22
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/831818/ft1_filtered_4FGL_J0746.4+2546_daily_bin1010.fits', '/scratch/kocevski/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.fits', expMap='/scratch/kocevski/831818/expmap_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.fits', expCube='/scratch/kocevski/831818/ltcube_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/831818/Model_4FGL_J0746.4+2546_daily_bin1010.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/831818/ft1_filtered_4FGL_J0746.4+2546_daily_bin1010.fits
Spacecraft file(s): /scratch/kocevski/831818/ft2_4FGL_J0746.4+2546_daily_bin1010.fits
Exposure map: /scratch/kocevski/831818/expmap_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.fits
Exposure cube: /scratch/kocevski/831818/ltcube_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/831818/Model_4FGL_J0746.4+2546_daily_bin1010.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) = 9464.82729099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3897       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .54723       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0515       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.277       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3954       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95560       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    77.254       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    28.539       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6143       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.581       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0347       1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4887       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99056       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=   9464.794     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2326 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3881        3.7863        .67779E-06   -.13763E-02
   2  norm          .10000E-03    20.868       -.19485E-06** at limit **
   3  norm          .54719        .53030        .89321E-07    .17508E-03
   4  Prefactor     .10000E-03    6.9651       -.92965E-08** at limit **
   5  Prefactor     .10000E-03    9.7807        .32810E-06** at limit **
   6  norm          1.0518        1.2435       -.51652E-08   -.51523E-04
   7  Prefactor     14.276        14.286        .16263E-06   -.28512E-04
   8  norm          1.3969        5.2209        .64482E-06   -.17496E-03
   9  Prefactor     .94923        59.840       -.92264E-06    .18248E-04
  10  Prefactor     .10000E-03    14.886       -.29573E-06** at limit **
  11  Prefactor     77.258        60.772        .22950E-05    .41147E-06
  12  Prefactor     .10000E-03    217.50        .18351E-05** at limit **
  13  norm          28.539        12.447        .17561E-06   -.16471E-04
  14  norm          .10000E-03    20.033        .10068E-05** at limit **
  15  Prefactor     4.6042        48.993        .80405E-05    .24468E-05
  16  Prefactor     21.578        25.871        .47907E-05    .38806E-04
  17  Prefactor     .10000E-03    6.1777       -.75511E-07** at limit **
  18  Prefactor     5.0292        18.656        .11183E-04    .51127E-04
  19  norm          .10000E-03    .34703       -.14786E-06** at limit **
  20  Normalizat    1.4886        .20001       -.23643E-05    .89295E-04
  21  Prefactor     .99065        .12120        .70224E-07   -.15922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38807
  norm       = 0.0001
  norm       = 0.547189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05184
  Prefactor  = 14.2758
  norm       = 1.39692
  Prefactor  = 0.949234
  Prefactor  = 0.0001
  Prefactor  = 77.2581
  Prefactor  = 0.0001
  norm       = 28.5392
  norm       = 0.0001
  Prefactor  = 4.60419
  Prefactor  = 21.5778
  Prefactor  = 0.0001
  Prefactor  = 5.02915
  norm       = 0.0001
  Normalizat = 1.4886
  Prefactor  = 0.990648
 **********
 **   18 **HESSE 
 **********

 FCN=   9464.794     FROM HESSE     STATUS=OK           327 CALLS     2653 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3881        9.1591        .13247E-02   -1.5399    
   2  norm          .10000E-03    21.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .54719        .52274        .67341E-04   -1.5560    
   4  Prefactor     .10000E-03    7.1638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0518        1.2149        .10313E-03   -1.5503    
   7  Prefactor     14.276        14.124        .10600E-03   -1.4952    
   8  norm          1.3969        4.9457        .30099E-03   -1.5472    
   9  Prefactor     .94923        64.867        .14286       -1.5513    
  10  Prefactor     .10000E-03    15.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     77.258        60.766        .45687E-04   -1.3948    
  12  Prefactor     .10000E-03    220.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          28.539        12.460        .74995E-04   -1.4639    
  14  norm          .10000E-03    20.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6042        48.360        .18737E-03   -1.5279    
  16  Prefactor     21.578        25.719        .86221E-04   -1.4779    
  17  Prefactor     .10000E-03    6.1795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0292        18.697        .17921E-03   -1.5259    
  19  norm          .10000E-03    .35650        .56060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4886        .23614        .29447E-03   -.78099    
  21  Prefactor     .99065        .14364        .22923E-03   -.93042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03599e-09
Minuit parameter uncertainties:
  1  9.16451
  2  8.89461e-05
  3  0.522743
  4  3.53844e-05
  5  1.97135e-05
  6  1.21489
  7  14.1278
  8  4.94712
  9  15.7108
  10  2.58262e-06
  11  60.8153
  12  1.45799e-05
  13  12.4607
  14  1.52217e-05
  15  29.8743
  16  25.7318
  17  1.6996e-06
  18  18.7189
  19  1.00506e-05
  20  0.236312
  21  0.143699
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.397e+00  4.947e+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:  9.906e-01  1.437e-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.489e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/831818/likelihoodResults_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.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) = 9464.78977516
delta logL = 0.00425321821058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9464.78962561
delta logL = 0.00440276012341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3900       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8617       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99214       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=   9464.790     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      268 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4067        4.0780        .28978E-03    .62723E-04
   2  alpha         2.8760        3.7896        .92355E-01   -.52979E-05
   3  Normalizat    1.4851        .22103        .29477E-03    .21444E-04
   4  Prefactor     .99228        .14221        .22907E-03    .50622E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40669
  alpha      = 2.876
  Normalizat = 1.48514
  Prefactor  = 0.992278
 **********
 **   18 **HESSE 
 **********

 FCN=   9464.790     FROM HESSE     STATUS=OK            27 CALLS      295 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4067        3.8508        .57957E-04   -1.5471    
   2  alpha         2.8760        3.7506        .36942E-02    .15097    
   3  Normalizat    1.4851        .22177        .11791E-04   -.78197    
   4  Prefactor     .99228        .14234        .91628E-05   -.92987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36826e-12
Minuit parameter uncertainties:
  1  3.8515
  2  2.88457
  3  0.22191
  4  0.142396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831818': 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) = 9464.78959895
delta logL = 0.00442942439258

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.407e+00  3.852e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.876e+00  2.885e+00  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:  9.923e-01  1.424e-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.485e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 116.602 25.768

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/831818/cmap_HighResolution_501120001_501379201_4FGL_J0746.4+2546_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-28 10:42:11.092474', job_id='831818', GAL2='0.99', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630172531.09', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.43e-03', ts2='0.16', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1010' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:42:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 831818: <4FGL_J0746.4+2546_daily_bin1010> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin1010> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 10:26:24 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:26:26 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:26 2021
Terminated at Sat Aug 28 10:42:11 2021
Results reported at Sat Aug 28 10:42:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin1010 116.602 25.7678 501120001 501379201 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 :                                   798.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

