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


Performing analysis on: 4FGL_J0746.5+2730_daily_bin1558
RA = 116.628, Dec = 27.5153
tmin = 643161601, tmax = 643420801
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='849267', job_status='RUN', time_executed='2021-08-28 11:17:54.347357', time_epoch_executed='1630174674.35' WHERE source_name='4FGL J0746.5+2730' and cadence='daily' and bin_id='1558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849267

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849267/ft1_4FGL_J0746.5+2730_daily_bin1558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849267/ft2_4FGL_J0746.5+2730_daily_bin1558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849267/ft1_4FGL_J0746.5+2730_daily_bin1558.fits outfile=/scratch/kocevski/849267/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1558.fits ra=116.628 dec=27.5153 rad=12.0 tmin=643161601.0 tmax=643420801.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 11.25
user 3.23
sys 7.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849267/ft2_4FGL_J0746.5+2730_daily_bin1558.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/849267/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1558.fits evtable="EVENTS" outfile="/scratch/kocevski/849267/ft1_filtered_4FGL_J0746.5+2730_daily_bin1558.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 8.29
user 0.31
sys 7.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849267/ft1_filtered_4FGL_J0746.5+2730_daily_bin1558.fits" evtable="EVENTS" scfile=/scratch/kocevski/849267/ft2_4FGL_J0746.5+2730_daily_bin1558.fits sctable="SC_DATA" outfile=/scratch/kocevski/849267/ltcube_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.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/849267/ft2_4FGL_J0746.5+2730_daily_bin1558.fits
.....................!
real 21.01
user 11.47
sys 8.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849267/ft1_filtered_4FGL_J0746.5+2730_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/849267/ft2_4FGL_J0746.5+2730_daily_bin1558.fits sctable="SC_DATA" expcube=/scratch/kocevski/849267/ltcube_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.fits outfile=/scratch/kocevski/849267/expmap_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.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/849267/ltcube_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.fits
.....................!
real 200.58
user 185.39
sys 13.98

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/849267/ft1_filtered_4FGL_J0746.5+2730_daily_bin1558.fits scfile=/scratch/kocevski/849267/ft2_4FGL_J0746.5+2730_daily_bin1558.fits outfile=/scratch/kocevski/849267/cmap_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.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 8.06
user 0.37
sys 7.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849267/ft1_filtered_4FGL_J0746.5+2730_daily_bin1558.fits scfile=/scratch/kocevski/849267/ft2_4FGL_J0746.5+2730_daily_bin1558.fits outfile=/scratch/kocevski/849267/cmap_HighResolution_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.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 8.18
user 0.37
sys 7.78

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/849267/ft1_filtered_4FGL_J0746.5+2730_daily_bin1558.fits', '/scratch/kocevski/849267/ft2_4FGL_J0746.5+2730_daily_bin1558.fits', expMap='/scratch/kocevski/849267/expmap_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.fits', expCube='/scratch/kocevski/849267/ltcube_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/849267/Model_4FGL_J0746.5+2730_daily_bin1558.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/849267/ft1_filtered_4FGL_J0746.5+2730_daily_bin1558.fits
Spacecraft file(s): /scratch/kocevski/849267/ft2_4FGL_J0746.5+2730_daily_bin1558.fits
Exposure map: /scratch/kocevski/849267/expmap_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.fits
Exposure cube: /scratch/kocevski/849267/ltcube_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/849267/Model_4FGL_J0746.5+2730_daily_bin1558.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) = 7100.97643696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11207E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24341E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6144       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.747       1.0000         .10000E-03   10000.    
     8 'norm      '    .39198E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50341E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.951       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11325E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.583       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0770       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7503       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4127       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82678       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=   7100.966     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2263 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5391       -.46963E-07** at limit **
   2  norm          .10000E-03    12.807        .16174E-05** at limit **
   3  norm          .10000E-03    .24759       -.18270E-06** at limit **
   4  Prefactor     .10005E-03    12.546       -.10603E-04** at limit **
   5  Prefactor     .10000E-03    7.1800       -.99852E-07** at limit **
   6  norm          1.6156        2.4423       -.14448E-05   -.15061E-04
   7  Prefactor     16.738        18.543        .18386E-05    .60714E-04
   8  norm          .10003E-03    1.8498       -.17660E-05** at limit **
   9  Prefactor     .10000E-03    14.854       -.42649E-07** at limit **
  10  Prefactor     .10030E-03    112.82        .33456E-04** at limit **
  11  Prefactor     51.950        47.027        .29301E-06    .39959E-04
  12  Prefactor     .10000E-03    19.344       -.33005E-06** at limit **
  13  norm          .10000E-03    8.8039       -.10825E-06** at limit **
  14  norm          .10000E-03    189.56        .17474E-04** at limit **
  15  Prefactor     10.583        20.009       -.65987E-06    .29047E-04
  16  Prefactor     .10000E-03    11.707       -.36244E-06** at limit **
  17  Prefactor     .10000E-03    15.498       -.33331E-06** at limit **
  18  Prefactor     6.0531        23.917        .17959E-05    .54990E-04
  19  norm          1.7519        1.6320       -.77054E-06    .20069E-03
  20  Normalizat    1.4123        .19555        .13321E-05    .43483E-04
  21  Prefactor     .82706        .12265        .74715E-06    .26480E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  norm       = 1.61555
  Prefactor  = 16.7382
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.000100296
  Prefactor  = 51.9501
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 10.5827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.0531
  norm       = 1.75185
  Normalizat = 1.41233
  Prefactor  = 0.827064
 **********
 **   18 **HESSE 
 **********

 FCN=   7100.966     FROM HESSE     STATUS=OK           331 CALLS     2594 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5503        .15482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .33176        .81554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    3.1636        .50565E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6156        2.4276        .11674E-03   -1.5454    
   7  Prefactor     16.738        18.490        .97869E-04   -1.4889    
   8  norm          .10003E-03    8.1477        .20867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10030E-03    10.332        .87492E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.950        47.093        .55643E-04   -1.4265    
  12  Prefactor     .10000E-03    19.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.8951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    189.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.583        20.007        .12316E-03   -1.5057    
  16  Prefactor     .10000E-03    11.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0531        23.625        .16287E-03   -1.5216    
  19  norm          1.7519        1.6057        .87858E-04   -1.5443    
  20  Normalizat    1.4123        .22899        .26538E-03   -.80273    
  21  Prefactor     .82706        .14436        .21800E-03   -.98738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82242e-09
Minuit parameter uncertainties:
  1  1.35145e-05
  2  0.000239744
  3  1.01109e-05
  4  0.000815103
  5  4.11404e-05
  6  2.42777
  7  18.4959
  8  0.000905865
  9  3.9742e-05
  10  0.00349857
  11  47.1268
  12  4.83406e-05
  13  7.01472e-05
  14  0.000652665
  15  20.02
  16  1.52562e-05
  17  5.2797e-05
  18  23.6613
  19  1.6057
  20  0.229161
  21  0.144425
Done.

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

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.974e-05  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:  8.271e-01  1.444e-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.412e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 116.628 27.515
Photon Flux Upper Limit: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849267/likelihoodResults_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.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): 102
logL (Free Index) = 7100.96628972
delta logL = -0.000320145915794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7100.96597038
delta logL = -8.10681740404e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13695E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5738       1.0000          .0000       10.000    
     3 'Normalizat'    1.4124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82703       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7100.966     FROM MIGRAD    STATUS=FAILED       183 CALLS      338 TOTAL
                     EDM=   .22E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17181E-01    214.97        .18142       -.19551    
   2  Index         1.3694        8.4209        .50000       -.92306E-03
   3  Normalizat    1.4126        .19058E-01    .26538E-03    .14361    
   4  Prefactor     .82725        .12433E-01    .21800E-03    .17712    
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7100.922     FROM SIMPLEX   STATUS=PROGRESS     102 CALLS      440 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3771        214.97        .63386E-03   -.19551    
   2  Index         1.5418        8.4209        .30220E-02   -.92306E-03
   3  Normalizat    1.4118        .19058E-01    .11452E-04    .14361    
   4  Prefactor     .82654        .12433E-01    .27305E-05    .17712    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7100.922     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      502 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4480        152.64        .64467E-02    .53628E-04
   2  Index         1.5424        1.9576        .31825       -.48455E-04
   3  Normalizat    1.4150        .22246        .53075E-04    .53550E-05
   4  Prefactor     .82355        .14758        .43599E-04    .15124E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.44801
  Index      = 1.54242
  Normalizat = 1.41502
  Prefactor  = 0.823554
 **********
 **   18 **HESSE 
 **********

 FCN=   7100.922     FROM HESSE     STATUS=OK            29 CALLS      531 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4480        23.795        .25787E-03   -1.5200    
   2  Index         1.5424        1.0564        .17704E-01   -.76359    
   3  Normalizat    1.4150        .21998        .10615E-04   -.80195    
   4  Prefactor     .82355        .14375        .87198E-05   -.98866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53336e-09
Minuit parameter uncertainties:
  1  23.8295
  2  1.07211
  3  0.220128
  4  0.143819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849267': 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) = 7100.9218111
delta logL = 0.0441584714044

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  6.448e+00  2.383e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  1.542e+00  1.072e+00  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:  8.236e-01  1.438e-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.415e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 116.628 27.515

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/849267/cmap_HighResolution_643161601_643420801_4FGL_J0746.5+2730_daily_bin1558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-08-28 11:31:29.647037', job_id='849267', GAL2='0.82', fit_tolerance='1e-08', EG2='1.42', EG='1.41', time_epoch_completed='1630175489.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.42e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1558' AND source_name='4FGL J0746.5+2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 11:31:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 849267: <4FGL_J0746.5+2730_daily_bin1558> in cluster <slac> Done

Job <4FGL_J0746.5+2730_daily_bin1558> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 11:15:30 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 11:15:32 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:15:32 2021
Terminated at Sat Aug 28 11:31:31 2021
Results reported at Sat Aug 28 11:31:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_daily_bin1558 116.628 27.5153 643161601 643420801 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 :                                   930.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

