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


Performing analysis on: 4FGL_J0746.4+2546_daily_bin27
RA = 116.602, Dec = 25.7678
tmin = 246326401, tmax = 246585601
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='824688', job_status='RUN', time_executed='2021-08-28 10:10:00.330412', time_epoch_executed='1630170600.33' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='27'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824688

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824688/ft1_4FGL_J0746.4+2546_daily_bin27.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824688/ft2_4FGL_J0746.4+2546_daily_bin27.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/824688/ft1_4FGL_J0746.4+2546_daily_bin27.fits outfile=/scratch/kocevski/824688/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin27.fits ra=116.602 dec=25.7678 rad=12.0 tmin=246326401.0 tmax=246585601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.68
user 1.28
sys 0.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/824688/ft1_filtered_4FGL_J0746.4+2546_daily_bin27.fits" evtable="EVENTS" scfile=/scratch/kocevski/824688/ft2_4FGL_J0746.4+2546_daily_bin27.fits sctable="SC_DATA" outfile=/scratch/kocevski/824688/ltcube_246326401_246585601_4FGL_J0746.4+2546_daily_bin27.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/824688/ft2_4FGL_J0746.4+2546_daily_bin27.fits
.....................!
real 12.83
user 12.25
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824688/ft1_filtered_4FGL_J0746.4+2546_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/824688/ft2_4FGL_J0746.4+2546_daily_bin27.fits sctable="SC_DATA" expcube=/scratch/kocevski/824688/ltcube_246326401_246585601_4FGL_J0746.4+2546_daily_bin27.fits outfile=/scratch/kocevski/824688/expmap_246326401_246585601_4FGL_J0746.4+2546_daily_bin27.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/824688/ltcube_246326401_246585601_4FGL_J0746.4+2546_daily_bin27.fits
.....................!
real 192.13
user 187.07
sys 4.69

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/824688/ft1_filtered_4FGL_J0746.4+2546_daily_bin27.fits scfile=/scratch/kocevski/824688/ft2_4FGL_J0746.4+2546_daily_bin27.fits outfile=/scratch/kocevski/824688/cmap_246326401_246585601_4FGL_J0746.4+2546_daily_bin27.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.87
user 0.37
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824688/ft1_filtered_4FGL_J0746.4+2546_daily_bin27.fits scfile=/scratch/kocevski/824688/ft2_4FGL_J0746.4+2546_daily_bin27.fits outfile=/scratch/kocevski/824688/cmap_HighResolution_246326401_246585601_4FGL_J0746.4+2546_daily_bin27.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.83
user 0.36
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    66.801       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2792       1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9929       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.232       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.574       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 '    15.576       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2952       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .80442       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0699       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=   7510.172     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2156 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4492        .46534E-06** at limit **
   2  norm          66.800        15.664        .48752E-07   -.42209E-04
   3  norm          1.6137        .72083       -.20699E-08   -.19702E-04
   4  Prefactor     .10000E-03    2.2319        .22282E-07** at limit **
   5  Prefactor     2.2793        9.2288        .66496E-05   -.94207E-04
   6  norm          .10000E-03    .49709       -.40708E-07** at limit **
   7  Prefactor     .10000E-03    4.5565       -.62596E-06** at limit **
   8  norm          3.9932        3.3177        .54887E-07    .30582E-04
   9  Prefactor     18.228        32.724        .17040E-05    .83909E-04
  10  Prefactor     .10000E-03    10.165        .79667E-06** at limit **
  11  Prefactor     44.510        35.659        .12810E-05    .75595E-04
  12  Prefactor     .10000E-03    17.324       -.30796E-05** at limit **
  13  norm          .10000E-03    3.8519       -.30551E-07** at limit **
  14  norm          .10000E-03    21.996        .20045E-05** at limit **
  15  Prefactor     18.574        27.932        .26412E-06    .77747E-05
  16  Prefactor     .10000E-03    8.2367       -.46187E-06** at limit **
  17  Prefactor     .10000E-03    20.748        .41441E-06** at limit **
  18  Prefactor     15.576        23.282        .10643E-06   -.37592E-05
  19  norm          2.2949        1.2824        .13649E-07   -.29393E-04
  20  Normalizat    .80446        .18250       -.13105E-06    .37189E-04
  21  Prefactor     1.0699        .12338       -.51915E-06   -.67391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 66.8003
  norm       = 1.61374
  Prefactor  = 0.0001
  Prefactor  = 2.27927
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.99322
  Prefactor  = 18.2277
  Prefactor  = 0.0001
  Prefactor  = 44.51
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5756
  norm       = 2.29493
  Normalizat = 0.804459
  Prefactor  = 1.0699
 **********
 **   18 **HESSE 
 **********

 FCN=   7510.172     FROM HESSE     STATUS=OK           311 CALLS     2467 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4760        .17848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          66.800        15.667        .49106E-04   -1.4072    
   3  norm          1.6137        .72117        .47503E-04   -1.5454    
   4  Prefactor     .10000E-03    2.2504        .12640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2793        9.2861        .13599E-02   -1.5406    
   6  norm          .10000E-03    .50735        .59624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6192        .18087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9932        3.3043        .13212E-03   -1.5308    
   9  Prefactor     18.228        32.886        .93800E-04   -1.4854    
  10  Prefactor     .10000E-03    10.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.510        35.769        .60089E-04   -1.4373    
  12  Prefactor     .10000E-03    17.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8603        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    21.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.574        27.945        .92932E-04   -1.4846    
  16  Prefactor     .10000E-03    8.2370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.576        23.467        .10149E-03   -1.4918    
  19  norm          2.2949        1.2872        .63454E-04   -1.5405    
  20  Normalizat    .80446        .21028        .31446E-03   -.99903    
  21  Prefactor     1.0699        .14239        .19425E-03   -.90434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74679e-10
Minuit parameter uncertainties:
  1  1.18925e-05
  2  15.6684
  3  0.72117
  4  1.78157e-06
  5  9.20348
  6  1.50906e-06
  7  3.61935e-05
  8  3.30448
  9  32.919
  10  9.75627e-06
  11  35.786
  12  0.000223627
  13  1.22155e-06
  14  0.000109326
  15  27.9649
  16  1.47703e-05
  17  3.93684e-05
  18  23.4811
  19  1.28721
  20  0.210488
  21  0.142439
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  3.993e+00  3.304e+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.070e+00  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:  8.045e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 116.602 25.768
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 9.35e-06 +/- 7.74e-06

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

Saving results to:
/scratch/kocevski/824688/likelihoodResults_246326401_246585601_4FGL_J0746.4+2546_daily_bin27.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) = 7510.06622552
delta logL = 0.105860884071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7510.06447691
delta logL = 0.107609492293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0988       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1990       1.0000          .0000       5.0000    
     3 'Normalizat'    .81488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0641       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=   7510.064     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      207 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0987        3.6804        .49782E-02    .29342E-02
   2  alpha         2.1989        .86859        .41535       -.54006E-04
   3  Normalizat    .81492        .17426        .70645E-01    .26112E-04
   4  Prefactor     1.0641        .12269        .39144E-01    .16023E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.09875
  alpha      = 2.19893
  Normalizat = 0.814916
  Prefactor  = 1.06412
 **********
 **   18 **HESSE 
 **********

 FCN=   7510.064     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0987        3.2805        .13382E-03   -1.5303    
   2  alpha         2.1989        .85534        .26490E-01   -.12072    
   3  Normalizat    .81492        .20095        .31261E-03   -.99518    
   4  Prefactor     1.0641        .14119        .19469E-03   -.90622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83485e-09
Minuit parameter uncertainties:
  1  3.28069
  2  0.873249
  3  0.201131
  4  0.141241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824688': 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) = 7510.0644769
delta logL = 0.107609509349

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  4.099e+00  3.281e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.199e+00  8.732e-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.064e+00  1.412e-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.149e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.70
Ra Dec: 116.602 25.768
Photon Index (Free Index): 2.20 +/- 0.87
Photon Flux (Free Index): 3.51e-08 +/- 3.18e-08
Energy Flux (Free Index): 1.01e-05 +/- 8.06e-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/824688/cmap_HighResolution_246326401_246585601_4FGL_J0746.4+2546_daily_bin27.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='1.01e-05', photon_flux_error='3.41e-08', dlogl='1.08e-01', energy_flux='9.35e-06', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-08-28 10:21:21.023895', photon_index_error2='0.87', photon_index2='2.20', ts='2.49', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='8.06e-06', EG='0.80', time_epoch_completed='1630171281.02', return_code='0', job_id='824688', GAL2='1.06', EG2='0.81', return_code2='0', energy_flux_error='7.74e-06', photon_flux_error2='3.18e-08', ts2='2.70', photon_index='2.62' WHERE bin_id='27' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:21:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 824688: <4FGL_J0746.4+2546_daily_bin27> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin27> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Aug 28 10:05:46 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:05:47 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:05:47 2021
Terminated at Sat Aug 28 10:21:21 2021
Results reported at Sat Aug 28 10:21:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin27 116.602 25.7678 246326401 246585601 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 :                                   683.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

