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


Performing analysis on: 4FGL_J0746.4+2546_daily_bin1017
RA = 116.602, Dec = 25.7678
tmin = 502934401, tmax = 503193601
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='831829', job_status='RUN', time_executed='2021-08-28 10:29:51.064106', time_epoch_executed='1630171791.06' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831829/ft1_4FGL_J0746.4+2546_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831829/ft2_4FGL_J0746.4+2546_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831829/ft1_4FGL_J0746.4+2546_daily_bin1017.fits outfile=/scratch/kocevski/831829/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1017.fits ra=116.602 dec=25.7678 rad=12.0 tmin=502934401.0 tmax=503193601.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 5.93
user 3.34
sys 2.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831829/ft1_filtered_4FGL_J0746.4+2546_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/831829/ft2_4FGL_J0746.4+2546_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/831829/ltcube_502934401_503193601_4FGL_J0746.4+2546_daily_bin1017.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/831829/ft2_4FGL_J0746.4+2546_daily_bin1017.fits
.....................!
real 14.98
user 11.77
sys 2.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831829/ft1_filtered_4FGL_J0746.4+2546_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/831829/ft2_4FGL_J0746.4+2546_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/831829/ltcube_502934401_503193601_4FGL_J0746.4+2546_daily_bin1017.fits outfile=/scratch/kocevski/831829/expmap_502934401_503193601_4FGL_J0746.4+2546_daily_bin1017.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/831829/ltcube_502934401_503193601_4FGL_J0746.4+2546_daily_bin1017.fits
.....................!
real 194.04
user 185.58
sys 7.83

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/831829/ft1_filtered_4FGL_J0746.4+2546_daily_bin1017.fits scfile=/scratch/kocevski/831829/ft2_4FGL_J0746.4+2546_daily_bin1017.fits outfile=/scratch/kocevski/831829/cmap_502934401_503193601_4FGL_J0746.4+2546_daily_bin1017.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 2.80
user 0.36
sys 2.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831829/ft1_filtered_4FGL_J0746.4+2546_daily_bin1017.fits scfile=/scratch/kocevski/831829/ft2_4FGL_J0746.4+2546_daily_bin1017.fits outfile=/scratch/kocevski/831829/cmap_HighResolution_502934401_503193601_4FGL_J0746.4+2546_daily_bin1017.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 2.82
user 0.39
sys 2.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5366       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .84146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.566       1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .62970E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    7.4317       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.672       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.183       1.0000         .10000E-03   10000.    
    13 'norm      '    15.886       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.586       1.0000         .10000E-03   10000.    
    19 'norm      '    .38876       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86698       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1302       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=   6682.124     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2238 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5359        7.8198        .59222E-07   -.72383E-04
   2  norm          .10000E-03    6.3733        .52967E-06** at limit **
   3  norm          .84137        .61146       -.14744E-08   -.37613E-03
   4  Prefactor     .10000E-03    11.072        .16516E-05** at limit **
   5  Prefactor     20.563        14.844        .96117E-07    .19365E-05
   6  norm          .10000E-03    .57580       -.49226E-08** at limit **
   7  Prefactor     .10004E-03    5.3531        .62944E-06** at limit **
   8  norm          7.4293        4.0158        .96450E-06   -.30802E-02
   9  Prefactor     .10000E-03    19.150        .29334E-05** at limit **
  10  Prefactor     33.674        20.767       -.50367E-06   -.34430E-04
  11  Prefactor     .10000E-03    21.344       -.47186E-05** at limit **
  12  Prefactor     12.172        28.727       -.50185E-05   -.19509E-03
  13  norm          15.884        10.747       -.36173E-07   -.43176E-04
  14  norm          .10000E-03    83.035       -.11882E-05** at limit **
  15  Prefactor     .10000E-03    10.554       -.66395E-06** at limit **
  16  Prefactor     .10000E-03    15.542        .22525E-05** at limit **
  17  Prefactor     .10000E-03    13.313       -.35957E-05** at limit **
  18  Prefactor     24.586        22.005       -.29082E-06   -.31136E-04
  19  norm          .38825        1.1735        .33033E-06   -.66447E-03
  20  Normalizat    .86714        .19450       -.12848E-06   -.14903E-03
  21  Prefactor     1.1302        .13284       -.19024E-06   -.18664E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5359
  norm       = 0.0001
  norm       = 0.841366
  Prefactor  = 0.0001
  Prefactor  = 20.5634
  norm       = 0.0001
  Prefactor  = 0.000100039
  norm       = 7.42927
  Prefactor  = 0.000100002
  Prefactor  = 33.6739
  Prefactor  = 0.000100004
  Prefactor  = 12.1719
  norm       = 15.8836
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 24.5858
  norm       = 0.388255
  Normalizat = 0.867138
  Prefactor  = 1.13023
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.124     FROM HESSE     STATUS=OK           321 CALLS     2559 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5359        7.8190        .18901E-03   -1.5282    
   2  norm          .10000E-03    6.4216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .84137        .59122        .52767E-03   -1.5525    
   4  Prefactor     .10000E-03    11.522        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.563        14.839        .88321E-04   -1.4801    
   6  norm          .10000E-03    .58667        .12040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    40.793        .35814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.4293        5.3662        .69570E-03   -1.5163    
   9  Prefactor     .10000E-03    19.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.674        21.288        .69056E-04   -1.4547    
  11  Prefactor     .10000E-03    22.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.172        28.760        .11477E-03   -1.5010    
  13  norm          15.884        10.746        .10049E-03   -1.4911    
  14  norm          .10000E-03    83.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.586        21.458        .80787E-04   -1.4716    
  19  norm          .38825        1.1521        .13705E-03   -1.5583    
  20  Normalizat    .86714        .22083        .30872E-03   -.97625    
  21  Prefactor     1.1302        .15201        .19336E-03   -.88506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97428e-09
Minuit parameter uncertainties:
  1  7.82079
  2  3.66648e-05
  3  0.591225
  4  0.000125082
  5  14.842
  6  1.69807e-06
  7  0.00250855
  8  5.36654
  9  0.000395814
  10  21.293
  11  0.000624381
  12  28.7927
  13  10.7477
  14  0.00030324
  15  6.03804e-05
  16  0.000250659
  17  0.000372424
  18  21.4648
  19  1.15221
  20  0.221063
  21  0.152065
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  7.429e+00  5.367e+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:  1.130e+00  1.521e-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:  8.671e-01  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 116.602 25.768
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 7.66e-08 +/- 5.53e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/831829/likelihoodResults_502934401_503193601_4FGL_J0746.4+2546_daily_bin1017.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) = 6682.10082772
delta logL = 0.0230636106126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6682.09766964
delta logL = 0.0262216879537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7641       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4291       1.0000          .0000       5.0000    
     3 'Normalizat'    .87510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1254       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=   6682.098     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      237 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7634        5.2032        .14220E-03    .32843E-03
   2  alpha         2.4297        .80310        .22208E-01   -.82574E-05
   3  Normalizat    .87510        .21634        .30745E-03    .10021E-03
   4  Prefactor     1.1254        .15141        .19369E-03    .22144E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.76344
  alpha      = 2.42968
  Normalizat = 0.875097
  Prefactor  = 1.12537
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.098     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7634        5.1655        .56880E-05   -1.5151    
   2  alpha         2.4297        .79741        .88830E-03   -.28133E-01
   3  Normalizat    .87510        .21658        .12298E-04   -.97341    
   4  Prefactor     1.1254        .15149        .38737E-04   -.88660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66304e-11
Minuit parameter uncertainties:
  1  5.16585
  2  0.811606
  3  0.216797
  4  0.151553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831829': 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) = 6682.09766937
delta logL = 0.0262219597644

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  7.763e+00  5.166e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.430e+00  8.116e-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.125e+00  1.516e-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:  8.751e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 116.602 25.768
Photon Index (Free Index): 2.43 +/- 0.81
Photon Flux (Free Index): 7.29e-08 +/- 5.17e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/831829/cmap_HighResolution_502934401_503193601_4FGL_J0746.4+2546_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-05', comment='SUCCESS', photon_flux='7.66e-08', energy_flux2='1.83e-05', photon_flux_error='5.53e-08', dlogl='2.62e-02', energy_flux='1.74e-05', photon_flux2='7.29e-08', job_status='DONE', time_completed='2021-08-28 10:41:34.981863', photon_index_error2='0.81', photon_index2='2.43', ts='3.11', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.24e-05', EG='0.87', time_epoch_completed='1630172494.98', return_code='0', job_id='831829', GAL2='1.13', EG2='0.88', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.17e-08', ts2='3.18', photon_index='2.62' WHERE bin_id='1017' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 831829: <4FGL_J0746.4+2546_daily_bin1017> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin1017> 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) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:26:27 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:27 2021
Terminated at Sat Aug 28 10:41:36 2021
Results reported at Sat Aug 28 10:41:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin1017 116.602 25.7678 502934401 503193601 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            912 sec.

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

