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


Performing analysis on: 4FGL_J0746.5+2730_daily_bin1430
RA = 116.628, Dec = 27.5153
tmin = 609984001, tmax = 610243201
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='847770', job_status='RUN', time_executed='2021-08-28 11:14:13.380890', time_epoch_executed='1630174453.38' WHERE source_name='4FGL J0746.5+2730' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847770/ft1_4FGL_J0746.5+2730_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847770/ft1_4FGL_J0746.5+2730_daily_bin1430.fits outfile=/scratch/kocevski/847770/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1430.fits ra=116.628 dec=27.5153 rad=12.0 tmin=609984001.0 tmax=610243201.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 7.21
user 4.82
sys 2.13

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.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/847770/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1430.fits evtable="EVENTS" outfile="/scratch/kocevski/847770/ft1_filtered_4FGL_J0746.5+2730_daily_bin1430.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.45
user 0.35
sys 2.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847770/ft1_filtered_4FGL_J0746.5+2730_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/847770/ltcube_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.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/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits
.....................!
real 13.83
user 11.28
sys 2.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847770/ft1_filtered_4FGL_J0746.5+2730_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/847770/ltcube_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.fits outfile=/scratch/kocevski/847770/expmap_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.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/847770/ltcube_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.fits
.....................!
real 192.80
user 185.22
sys 7.04

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 178 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.5+2730 @ 116.628 27.5153

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/847770/ft1_filtered_4FGL_J0746.5+2730_daily_bin1430.fits scfile=/scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits outfile=/scratch/kocevski/847770/cmap_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.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.628 yref=27.5153 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.42
user 0.37
sys 1.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847770/ft1_filtered_4FGL_J0746.5+2730_daily_bin1430.fits scfile=/scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits outfile=/scratch/kocevski/847770/cmap_HighResolution_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.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.628 yref=27.5153 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.42
user 0.37
sys 2.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/847770/ft1_filtered_4FGL_J0746.5+2730_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/847770/Model_4FGL_J0746.5+2730_daily_bin1430.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/847770/ft1_filtered_4FGL_J0746.5+2730_daily_bin1430.fits.....................!
real 77.53
user 73.42
sys 3.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/847770/ft1_filtered_4FGL_J0746.5+2730_daily_bin1430.fits', '/scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits', expMap='/scratch/kocevski/847770/expmap_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.fits', expCube='/scratch/kocevski/847770/ltcube_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/847770/Model_4FGL_J0746.5+2730_daily_bin1430.xml', optimizer='MINUIT')

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

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  7.489e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/847770/ft1_filtered_4FGL_J0746.5+2730_daily_bin1430.fits
Spacecraft file(s): /scratch/kocevski/847770/ft2_4FGL_J0746.5+2730_daily_bin1430.fits
Exposure map: /scratch/kocevski/847770/expmap_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.fits
Exposure cube: /scratch/kocevski/847770/ltcube_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/847770/Model_4FGL_J0746.5+2730_daily_bin1430.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) = 6465.31819027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2627       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7778       1.0000         .10000E-03   10000.    
     3 'norm      '    .42944       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.805       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .20353       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .54071E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.031       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.881       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.698       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.961       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4101       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6465.284     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2266 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2522        16.632       -.11542E-05    .11664E-04
   2  norm          5.7755        9.8036       -.21600E-06    .36956E-04
   3  norm          .42914        .55397       -.22340E-06   -.19885E-02
   4  Prefactor     10.811        11.432        .52257E-06    .12338E-03
   5  Prefactor     .10000E-03    6.8040       -.36671E-06** at limit **
   6  norm          .20330        .71084       -.12303E-07    .25799E-03
   7  Prefactor     .10000E-03    3.9434       -.20644E-06** at limit **
   8  norm          .10001E-03    10.053        .83338E-05** at limit **
   9  Prefactor     66.139        56.492        .21547E-05   -.12784E-03
  10  Prefactor     .10000E-03    22.912       -.16073E-05** at limit **
  11  Prefactor     .10000E-03    20.861        .48374E-06** at limit **
  12  Prefactor     .10000E-03    64.081       -.20541E-05** at limit **
  13  norm          13.874        17.419       -.29736E-06    .61610E-04
  14  norm          .10000E-03    100.04        .64446E-06** at limit **
  15  Prefactor     25.680        37.077        .73681E-06    .58785E-05
  16  Prefactor     .10000E-03    36.053        .46233E-06** at limit **
  17  Prefactor     25.940        36.020        .61927E-06    .45829E-04
  18  Prefactor     .10000E-03    8.9919       -.35487E-06** at limit **
  19  norm          .10000E-03    .52543       -.29007E-06** at limit **
  20  Normalizat    1.4099        .23602       -.31369E-05   -.10383E-03
  21  Prefactor     .97932        .14439        .43176E-05    .78267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.25221
  norm       = 5.77551
  norm       = 0.429138
  Prefactor  = 10.8106
  Prefactor  = 0.0001
  norm       = 0.203297
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 66.1393
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 13.874
  norm       = 0.0001
  Prefactor  = 25.6803
  Prefactor  = 0.000100001
  Prefactor  = 25.9401
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.40989
  Prefactor  = 0.979321
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.284     FROM HESSE     STATUS=OK           321 CALLS     2587 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2522        16.696        .14884E-03   -1.5169    
   2  norm          5.7755        9.7978        .16709E-03   -1.5227    
   3  norm          .42914        .52401        .66314E-03   -1.5577    
   4  Prefactor     10.811        11.462        .12189E-03   -1.5050    
   5  Prefactor     .10000E-03    6.8240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .20330        .86702        .12301E-02   -1.5618    
   7  Prefactor     .10000E-03    3.9698        .15589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    11.162        .26545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     66.139        56.418        .24695E-03   -1.4080    
  10  Prefactor     .10000E-03    23.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    63.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.874        17.432        .10751E-03   -1.4963    
  14  norm          .10000E-03    100.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.680        37.108        .79023E-04   -1.4694    
  16  Prefactor     .10000E-03    35.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.940        36.074        .78622E-04   -1.4689    
  18  Prefactor     .10000E-03    9.0060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .53852        .57152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4099        .27335        .29993E-03   -.80343    
  21  Prefactor     .97932        .17197        .22514E-03   -.93422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54183e-09
Minuit parameter uncertainties:
  1  16.7064
  2  9.8005
  3  0.524019
  4  11.4641
  5  6.49911e-05
  6  0.839484
  7  3.15716e-05
  8  0.000769001
  9  56.4632
  10  0.000254981
  11  7.75667e-05
  12  0.000494281
  13  17.4386
  14  0.000253552
  15  37.141
  16  0.000400737
  17  36.1039
  18  7.20244e-05
  19  1.46236e-05
  20  0.273631
  21  0.172064
Done.

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

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  6.614e+01  5.646e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.793e-01  1.721e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.410e+00  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 116.628 27.515
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 7.35e-08 +/- 6.26e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.61e-05

TS (Fixed Index): 2.07
Ra Dec: 116.628 27.515
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847770/likelihoodResults_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.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) = 6464.26702838
delta logL = 1.01715391402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6463.97245112
delta logL = 1.31173117117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.418       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0368       1.0000          .0000       10.000    
     3 'Normalizat'    1.4563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6463.972     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      222 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.418        17.736        .22160E-02    .26215E-02
   2  Index         1.0368        .28031        .15944       -.90874E-04
   3  Normalizat    1.4562        .22183        .66842E-01    .51153E-05
   4  Prefactor     .97128        .14295        .45907E-01    .98301E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4178
  Index      = 1.03682
  Normalizat = 1.45623
  Prefactor  = 0.97128
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.972     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.418        34.333        .88640E-04   -1.4804    
   2  Index         1.0368        .56131        .68041E-02   -.91512    
   3  Normalizat    1.4562        .26001        .29568E-03   -.79016    
   4  Prefactor     .97128        .16771        .22607E-03   -.93693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08381e-08
Minuit parameter uncertainties:
  1  34.3657
  2  0.564528
  3  0.260249
  4  0.167802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847770': 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) = 6463.97245109
delta logL = 1.31173119494

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  2.042e+01  3.437e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  1.037e+00  5.645e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.713e-01  1.678e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.456e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.66
Ra Dec: 116.628 27.515
Photon Index (Free Index): 1.04 +/- 0.56
Photon Flux (Free Index): 9.70e-09 +/- 1.06e-08
Energy Flux (Free Index): 1.28e-04 +/- 1.40e-04

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/847770/cmap_HighResolution_609984001_610243201_4FGL_J0746.5+2730_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', photon_flux='7.35e-08', energy_flux2='1.28e-04', photon_flux_error='6.26e-08', dlogl='1.31e+00', energy_flux='1.89e-05', photon_flux2='9.70e-09', job_status='DONE', time_completed='2021-08-28 11:25:41.716224', photon_index_error2='0.56', photon_index2='1.04', ts='2.07', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='1.40e-04', EG='1.41', time_epoch_completed='1630175141.72', return_code='0', job_id='847770', GAL2='0.97', EG2='1.46', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='1.06e-08', ts2='4.66', photon_index='2.62' WHERE bin_id='1430' AND source_name='4FGL J0746.5+2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 11:25:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 847770: <4FGL_J0746.5+2730_daily_bin1430> in cluster <slac> Done

Job <4FGL_J0746.5+2730_daily_bin1430> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 11:10:26 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 11:10:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 11:10:28 2021
Terminated at Sat Aug 28 11:25:42 2021
Results reported at Sat Aug 28 11:25:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_daily_bin1430 116.628 27.5153 609984001 610243201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.5+2730 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

