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


Performing analysis on: 4FGL_J0746.4+2546_daily_bin1403
RA = 116.602, Dec = 25.7678
tmin = 602985601, tmax = 603244801
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='833343', job_status='RUN', time_executed='2021-08-28 10:36:16.136495', time_epoch_executed='1630172176.14' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833343/ft1_4FGL_J0746.4+2546_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833343/ft2_4FGL_J0746.4+2546_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833343/ft1_4FGL_J0746.4+2546_daily_bin1403.fits outfile=/scratch/kocevski/833343/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1403.fits ra=116.602 dec=25.7678 rad=12.0 tmin=602985601.0 tmax=603244801.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 4.47
user 2.78
sys 1.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833343/ft2_4FGL_J0746.4+2546_daily_bin1403.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/833343/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/833343/ft1_filtered_4FGL_J0746.4+2546_daily_bin1403.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 2.01
user 0.33
sys 1.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833343/ft1_filtered_4FGL_J0746.4+2546_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/833343/ft2_4FGL_J0746.4+2546_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/833343/ltcube_602985601_603244801_4FGL_J0746.4+2546_daily_bin1403.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/833343/ft2_4FGL_J0746.4+2546_daily_bin1403.fits
.....................!
real 14.44
user 12.58
sys 1.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833343/ft1_filtered_4FGL_J0746.4+2546_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/833343/ft2_4FGL_J0746.4+2546_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/833343/ltcube_602985601_603244801_4FGL_J0746.4+2546_daily_bin1403.fits outfile=/scratch/kocevski/833343/expmap_602985601_603244801_4FGL_J0746.4+2546_daily_bin1403.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/833343/ltcube_602985601_603244801_4FGL_J0746.4+2546_daily_bin1403.fits
.....................!
real 194.81
user 186.86
sys 7.43

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/833343/ft1_filtered_4FGL_J0746.4+2546_daily_bin1403.fits scfile=/scratch/kocevski/833343/ft2_4FGL_J0746.4+2546_daily_bin1403.fits outfile=/scratch/kocevski/833343/cmap_602985601_603244801_4FGL_J0746.4+2546_daily_bin1403.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.93
user 0.40
sys 1.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833343/ft1_filtered_4FGL_J0746.4+2546_daily_bin1403.fits scfile=/scratch/kocevski/833343/ft2_4FGL_J0746.4+2546_daily_bin1403.fits outfile=/scratch/kocevski/833343/cmap_HighResolution_602985601_603244801_4FGL_J0746.4+2546_daily_bin1403.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.93
user 0.39
sys 1.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    37.548       1.0000         .10000E-03   10000.    
     3 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0111       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6825       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55947E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.477       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.136       1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.254       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6135       1.0000         .10000E-03   10000.    
    14 'norm      '    .22436E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    150.78       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .64254       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0361       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=   1602.650     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2577 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.677        .99361E-06** at limit **
   2  norm          37.558        27.059        .46300E-05    .17478E-04
   3  norm          .10000E-03    .92620        .76769E-06** at limit **
   4  Prefactor     5.0290        16.460        .95492E-05   -.19775E-03
   5  Prefactor     5.6848        39.130        .10767E-04   -.75876E-04
   6  norm          2.1885        3.5979       -.43827E-05   -.26291E-03
   7  Prefactor     .10008E-03    53.672       -.13532E-04** at limit **
   8  norm          16.460        20.637       -.22590E-04   -.10873E-04
   9  Prefactor     .10000E-03    66.004       -.28223E-05** at limit **
  10  Prefactor     58.228        84.830        .91001E-04   -.43869E-05
  11  Prefactor     48.439        128.75        .23614E-03    .47639E-04
  12  Prefactor     .10000E-03    86.502       -.24312E-04** at limit **
  13  norm          1.7992        175.24        .39727E-04   -.12349E-05
  14  norm          .10001E-03    552.11       -.29294E-03** at limit **
  15  Prefactor     .10000E-03    61.827        .29988E-04** at limit **
  16  Prefactor     .10000E-03    74.869       -.34849E-04** at limit **
  17  Prefactor     150.78        146.92       -.38541E-05   -.19865E-04
  18  Prefactor     .10000E-03    143.70        .92287E-04** at limit **
  19  norm          .10000E-03    11.866       -.13852E-06** at limit **
  20  Normalizat    .64308        .55138       -.34526E-04   -.20192E-03
  21  Prefactor     1.0357        .27309       -.42231E-05   -.27830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 37.5578
  norm       = 0.000100002
  Prefactor  = 5.02895
  Prefactor  = 5.68483
  norm       = 2.18849
  Prefactor  = 0.00010008
  norm       = 16.4605
  Prefactor  = 0.0001
  Prefactor  = 58.2275
  Prefactor  = 48.4394
  Prefactor  = 0.0001
  norm       = 1.79919
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 150.78
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.643081
  Prefactor  = 1.03572
 **********
 **   18 **HESSE 
 **********

 FCN=   1602.650     FROM HESSE     STATUS=OK           313 CALLS     2890 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.724        .13920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          37.558        27.026        .65406E-04   -1.4482    
   3  norm          .10000E-03    1.2869        .73427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0290        16.709        .17964E-03   -1.5259    
   5  Prefactor     5.6848        39.056        .16851E-03   -1.5231    
   6  norm          2.1885        3.5558        .92443E-04   -1.5412    
   7  Prefactor     .10008E-03    54.630        .42201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.460        20.657        .98669E-04   -1.4896    
   9  Prefactor     .10000E-03    66.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     58.228        84.789        .26308E-03   -1.4180    
  11  Prefactor     48.439        128.65        .28863E-03   -1.4315    
  12  Prefactor     .10000E-03    86.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7992        173.86        .33339E-03   -1.5440    
  14  norm          .10001E-03    552.16        .20123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    61.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    74.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     150.78        146.83        .16412E-03   -1.3246    
  18  Prefactor     .10000E-03    143.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.876        .13471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .64308        .63244        .39874E-03   -1.0618    
  21  Prefactor     1.0357        .32170        .18214E-03   -.91548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09766e-09
Minuit parameter uncertainties:
  1  0.000130965
  2  27.035
  3  0.000107475
  4  16.7244
  5  29.8288
  6  3.55612
  7  0.00417735
  8  20.6656
  9  0.000265979
  10  84.9651
  11  129.396
  12  0.00011457
  13  35.4781
  14  0.00385257
  15  1.90212e-05
  16  1.43687e-05
  17  147.187
  18  3.25952e-05
  19  7.43285e-06
  20  0.639779
  21  0.3223
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.646e+01  2.067e+01  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:  1.036e+00  3.223e-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:  6.431e-01  6.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 116.602 25.768
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 2.13e-07
Energy Flux (Fixed Index): 3.86e-05 +/- 4.84e-05

TS (Fixed Index): 1.30
Ra Dec: 116.602 25.768
Photon Flux Upper Limit: 5.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833343/likelihoodResults_602985601_603244801_4FGL_J0746.4+2546_daily_bin1403.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) = 1602.64931847
delta logL = 0.000226257414852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1602.64931448
delta logL = 0.000230248579101

Fit tolerance = 1e-08

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

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

 FCN=   1602.649     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      199 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.441        20.574        .24680E-02    .20050E-04
   2  alpha         2.6435        1.0531        .32552       -.12717E-05
   3  Normalizat    .64209        .47060        .90069E-01    .77349E-06
   4  Prefactor     1.0361        .26536        .40797E-01   -.17369E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.4415
  alpha      = 2.64354
  Normalizat = 0.642094
  Prefactor  = 1.03615
 **********
 **   18 **HESSE 
 **********

 FCN=   1602.649     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.441        17.094        .98718E-04   -1.4897    
   2  alpha         2.6435        .90601        .14001E-01    .57449E-01
   3  Normalizat    .64209        .54047        .39905E-03   -1.0623    
   4  Prefactor     1.0361        .30617        .18210E-03   -.91534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60527e-12
Minuit parameter uncertainties:
  1  17.0992
  2  0.927191
  3  0.545018
  4  0.306684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833343': 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) = 1602.64931381
delta logL = 0.000230917825093

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.644e+01  1.710e+01  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.644e+00  9.272e-01  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:  1.036e+00  3.067e-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:  6.421e-01  5.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 116.602 25.768
Photon Index (Free Index): 2.64 +/- 0.93
Photon Flux (Free Index): 1.71e-07 +/- 1.90e-07
Energy Flux (Free Index): 3.86e-05 +/- 4.00e-05

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/833343/cmap_HighResolution_602985601_603244801_4FGL_J0746.4+2546_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-04', comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='3.86e-05', photon_flux_error='2.13e-07', dlogl='2.31e-04', energy_flux='3.86e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-08-28 10:43:25.237580', photon_index_error2='0.93', photon_index2='2.64', ts='1.30', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='5.61e-07', energy_flux_error2='4.00e-05', EG='0.64', time_epoch_completed='1630172605.24', return_code='0', job_id='833343', GAL2='1.04', EG2='0.64', return_code2='0', energy_flux_error='4.84e-05', photon_flux_error2='1.90e-07', ts2='1.32', photon_index='2.62' WHERE bin_id='1403' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:43:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 833343: <4FGL_J0746.4+2546_daily_bin1403> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin1403> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 28 10:31:06 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:31:36 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:31:36 2021
Terminated at Sat Aug 28 10:43:26 2021
Results reported at Sat Aug 28 10:43:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin1403 116.602 25.7678 602985601 603244801 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 :                                   443.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             242.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            740 sec.

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

