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


Performing analysis on: 4FGL_J0746.5+2730_daily_bin1385
RA = 116.628, Dec = 27.5153
tmin = 598320001, tmax = 598579201
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='847701', job_status='RUN', time_executed='2021-08-28 11:13:48.146240', time_epoch_executed='1630174428.15' WHERE source_name='4FGL J0746.5+2730' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847701

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847701/ft1_4FGL_J0746.5+2730_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847701/ft2_4FGL_J0746.5+2730_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847701/ft1_4FGL_J0746.5+2730_daily_bin1385.fits outfile=/scratch/kocevski/847701/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1385.fits ra=116.628 dec=27.5153 rad=12.0 tmin=598320001.0 tmax=598579201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.49
user 3.11
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847701/ft1_filtered_4FGL_J0746.5+2730_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/847701/ft2_4FGL_J0746.5+2730_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/847701/ltcube_598320001_598579201_4FGL_J0746.5+2730_daily_bin1385.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/847701/ft2_4FGL_J0746.5+2730_daily_bin1385.fits
.....................!
real 13.48
user 11.81
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847701/ft1_filtered_4FGL_J0746.5+2730_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/847701/ft2_4FGL_J0746.5+2730_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/847701/ltcube_598320001_598579201_4FGL_J0746.5+2730_daily_bin1385.fits outfile=/scratch/kocevski/847701/expmap_598320001_598579201_4FGL_J0746.5+2730_daily_bin1385.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/847701/ltcube_598320001_598579201_4FGL_J0746.5+2730_daily_bin1385.fits
.....................!
real 191.64
user 184.67
sys 6.61

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/847701/ft1_filtered_4FGL_J0746.5+2730_daily_bin1385.fits scfile=/scratch/kocevski/847701/ft2_4FGL_J0746.5+2730_daily_bin1385.fits outfile=/scratch/kocevski/847701/cmap_598320001_598579201_4FGL_J0746.5+2730_daily_bin1385.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 1.72
user 0.36
sys 1.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847701/ft1_filtered_4FGL_J0746.5+2730_daily_bin1385.fits scfile=/scratch/kocevski/847701/ft2_4FGL_J0746.5+2730_daily_bin1385.fits outfile=/scratch/kocevski/847701/cmap_HighResolution_598320001_598579201_4FGL_J0746.5+2730_daily_bin1385.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 1.71
user 0.37
sys 1.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.903       1.0000         .10000E-03   10000.    
     2 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2736       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5159       1.0000         .10000E-03   10000.    
     8 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.426       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14206E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.367       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .73186       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2917       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=   1308.298     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2500 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.888        39.814        .26344E-06   -.31813E-04
   2  norm          .10000E-03    36.470        .27148E-06** at limit **
   3  norm          .10000E-03    .70893        .39665E-07** at limit **
   4  Prefactor     7.2712        18.765        .13388E-06   -.32601E-06
   5  Prefactor     .10000E-03    23.927       -.20496E-07** at limit **
   6  norm          .10013E-03    6.8155       -.20733E-05** at limit **
   7  Prefactor     4.4991        49.593        .14661E-04    .51330E-05
   8  norm          .10000E-03    19.191        .18139E-06** at limit **
   9  Prefactor     .10000E-03    70.125        .17593E-06** at limit **
  10  Prefactor     .10000E-03    100.71        .13903E-05** at limit **
  11  Prefactor     .10000E-03    82.069        .46397E-06** at limit **
  12  Prefactor     .10000E-03    65.197       -.14940E-06** at limit **
  13  norm          .10000E-03    59.880       -.73919E-07** at limit **
  14  norm          .10001E-03    159.19       -.13751E-05** at limit **
  15  Prefactor     33.396       100.000       -.10658E-04    .14425E-03
  16  Prefactor     .10007E-03    1074.1       -.22123E-04** at limit **
  17  Prefactor     .10000E-03    45.932       -.46732E-06** at limit **
  18  Prefactor     28.364        45.613       -.45000E-06    .65049E-04
  19  norm          .10000E-03    .72634       -.39373E-08** at limit **
  20  Normalizat    .73205        .46023       -.10105E-05    .10570E-03
  21  Prefactor     1.2916        .30896       -.33158E-07    .18463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8879
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 7.27122
  Prefactor  = 0.0001
  norm       = 0.000100128
  Prefactor  = 4.49907
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100005
  Prefactor  = 33.3961
  Prefactor  = 0.000100066
  Prefactor  = 0.0001
  Prefactor  = 28.3639
  norm       = 0.0001
  Normalizat = 0.73205
  Prefactor  = 1.2916
 **********
 **   18 **HESSE 
 **********

 FCN=   1308.298     FROM HESSE     STATUS=OK           305 CALLS     2805 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.888        39.881        .10742E-03   -1.4962    
   2  norm          .10000E-03    36.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .71333        .29736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2712        18.827        .14872E-03   -1.5169    
   5  Prefactor     .10000E-03    23.979        .17293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10013E-03    20.612        .17078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4991        50.520        .18945E-03   -1.5284    
   8  norm          .10000E-03    19.806        .30908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    70.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    101.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    82.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    65.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    60.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    160.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.396        94.993        .69310E-04   -1.4552    
  16  Prefactor     .10007E-03    1048.9        .41026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.364        45.621        .75221E-04   -1.4642    
  19  norm          .10000E-03    .72707        .30096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .73205        .51391        .33311E-03   -1.0264    
  21  Prefactor     1.2916        .34638        .18635E-03   -.83557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92802e-09
Minuit parameter uncertainties:
  1  39.9575
  2  0.000278165
  3  7.23903e-07
  4  18.8422
  5  9.83397e-05
  6  0.00324783
  7  30.1845
  8  0.00011485
  9  6.17352e-05
  10  0.00082163
  11  0.000431099
  12  0.000156004
  13  0.000360172
  14  0.00183287
  15  95.428
  16  0.0169823
  17  0.00027143
  18  45.6774
  19  1.65913e-06
  20  0.517355
  21  0.346996
Done.

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

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.174e-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:  1.292e+00  3.470e-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:  7.321e-01  5.174e-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: 2.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847701/likelihoodResults_598320001_598579201_4FGL_J0746.5+2730_daily_bin1385.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) = 1308.29821281
delta logL = -6.77726270624e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1308.29814503
delta logL = 9.98443283606e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5706       1.0000          .0000       10.000    
     3 'Normalizat'    .73206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2916       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=   1308.298     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    378.37        .90712E-02** at limit **
   2  Index         2.5634        5.5158        .50000        .89519E-06
   3  Normalizat    .73205        .41539        .75249E-01    .50677E-05
   4  Prefactor     1.2916        .30306        .32758E-01    .10890E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5634
  Normalizat = 0.732049
  Prefactor  = 1.2916
 **********
 **   18 **HESSE 
 **********

 FCN=   1308.298     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5634        6.2798        .50000       -.50902    
   3  Normalizat    .73205        .46207        .33310E-03   -1.0264    
   4  Prefactor     1.2916        .33814        .18635E-03   -.83557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07837e-12
Minuit parameter uncertainties:
  1  9.26712e-05
  2  4.46703
  3  0.464561
  4  0.338712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847701': 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) = 1308.29814502
delta logL = 1.22429355542e-08

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  9.267e-05  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.563e+00  4.467e+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:  1.292e+00  3.387e-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:  7.320e-01  4.646e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/847701/cmap_HighResolution_598320001_598579201_4FGL_J0746.5+2730_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-02', job_status='DONE', photon_flux_upper_limit='2.77e-07', time_completed='2021-08-28 11:20:44.232824', job_id='847701', GAL2='1.29', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630174844.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='1.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1385' AND source_name='4FGL J0746.5+2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 11:20:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 847701: <4FGL_J0746.5+2730_daily_bin1385> in cluster <slac> Done

Job <4FGL_J0746.5+2730_daily_bin1385> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 11:10:22 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 11:10:23 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:23 2021
Terminated at Sat Aug 28 11:20:45 2021
Results reported at Sat Aug 28 11:20:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_daily_bin1385 116.628 27.5153 598320001 598579201 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 :                                   424.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            623 sec.

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

