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


Performing analysis on: 4FGL_J0746.5+2730_daily_bin1580
RA = 116.628, Dec = 27.5153
tmin = 648864001, tmax = 649123201
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='849302', job_status='RUN', time_executed='2021-08-28 11:20:30.634282', time_epoch_executed='1630174830.63' WHERE source_name='4FGL J0746.5+2730' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849302/ft1_4FGL_J0746.5+2730_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849302/ft2_4FGL_J0746.5+2730_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849302/ft1_4FGL_J0746.5+2730_daily_bin1580.fits outfile=/scratch/kocevski/849302/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1580.fits ra=116.628 dec=27.5153 rad=12.0 tmin=648864001.0 tmax=649123201.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 6.48
user 2.80
sys 3.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849302/ft2_4FGL_J0746.5+2730_daily_bin1580.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/849302/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1580.fits evtable="EVENTS" outfile="/scratch/kocevski/849302/ft1_filtered_4FGL_J0746.5+2730_daily_bin1580.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 3.90
user 0.34
sys 3.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849302/ft1_filtered_4FGL_J0746.5+2730_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/849302/ft2_4FGL_J0746.5+2730_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/849302/ltcube_648864001_649123201_4FGL_J0746.5+2730_daily_bin1580.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/849302/ft2_4FGL_J0746.5+2730_daily_bin1580.fits
.....................!
real 16.20
user 12.11
sys 4.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849302/ft1_filtered_4FGL_J0746.5+2730_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/849302/ft2_4FGL_J0746.5+2730_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/849302/ltcube_648864001_649123201_4FGL_J0746.5+2730_daily_bin1580.fits outfile=/scratch/kocevski/849302/expmap_648864001_649123201_4FGL_J0746.5+2730_daily_bin1580.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/849302/ltcube_648864001_649123201_4FGL_J0746.5+2730_daily_bin1580.fits
.....................!
real 196.75
user 187.84
sys 8.40

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/849302/ft1_filtered_4FGL_J0746.5+2730_daily_bin1580.fits scfile=/scratch/kocevski/849302/ft2_4FGL_J0746.5+2730_daily_bin1580.fits outfile=/scratch/kocevski/849302/cmap_648864001_649123201_4FGL_J0746.5+2730_daily_bin1580.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 3.92
user 0.39
sys 3.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849302/ft1_filtered_4FGL_J0746.5+2730_daily_bin1580.fits scfile=/scratch/kocevski/849302/ft2_4FGL_J0746.5+2730_daily_bin1580.fits outfile=/scratch/kocevski/849302/cmap_HighResolution_648864001_649123201_4FGL_J0746.5+2730_daily_bin1580.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 3.79
user 0.39
sys 3.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0427       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3967       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1557       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23504E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11217E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19775E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6506       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57956E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    59.174       1.0000         .10000E-03   10000.    
    14 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    19 'norm      '    .32392E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10048E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3738       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=   789.1807     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2942 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0871        35.177       -.80298E-06   -.19034E-04
   2  norm          7.3634        91.256       -.12215E-05    .17175E-05
   3  norm          4.1595        2.6025       -.72153E-07   -.68805E-03
   4  Prefactor     .10000E-03    8.8827        .20201E-07** at limit **
   5  Prefactor     .10000E-03    13.501        .19159E-07** at limit **
   6  norm          .10000E-03    17.865       -.21801E-06** at limit **
   7  Prefactor     .10001E-03    2112.2       -.20076E-05** at limit **
   8  norm          .10001E-03    97.009        .26738E-05** at limit **
   9  Prefactor     .10000E-03    187.88        .16910E-06** at limit **
  10  Prefactor     6.8473        6701.5       -.31788E-04    .12094E-04
  11  Prefactor    10000.0        7109.0        .34753E-06** at limit **
  12  Prefactor     .10000E-03    569.13        .30448E-06** at limit **
  13  norm          59.215        91.839       -.11185E-06   -.18635E-04
  14  norm         10000.0        9914.9       -.12863E-06** at limit **
  15  Prefactor    10000.0        6708.9        .10769E-06** at limit **
  16  Prefactor    10000.0        7717.4        .73312E-06** at limit **
  17  Prefactor    10000.0        6364.3        .49435E-07** at limit **
  18  Prefactor    10000.0        7592.6        .79692E-06** at limit **
  19  norm          .10000E-03    1268.2        .89384E-07** at limit **
  20  Normalizat    .10000E-01    .69804        .22732E-04** at limit **
  21  Prefactor     1.3734        .25136       -.30289E-05   -.19213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.08714
  norm       = 7.3634
  norm       = 4.15954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 6.84728
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 59.2149
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.37337
 **********
 **   18 **HESSE 
 **********

 FCN=   789.1807     FROM HESSE     STATUS=OK           303 CALLS     3245 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0871        35.197        .13328E-03   -1.5105    
   2  norm          7.3634        91.059        .14747E-03   -1.5165    
   3  norm          4.1595        2.6186        .33306E-04   -1.5300    
   4  Prefactor     .10000E-03    8.8867        .81796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.504        .10085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.877        .11598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    2118.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    95.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    187.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8473        6593.1        .15560E-03   -1.5185    
  11  Prefactor    10000.0        7109.4        .18260E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    569.05        .21082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          59.215        91.861        .26078E-03   -1.4167    
  14  norm         10000.0        9915.0        .20584E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        6708.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        7717.1        .18595E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        6364.3        .20544E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        7592.3        .18688E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1268.1        .19744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    1.7669        .12857E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3734        .26052        .17856E-03   -.81151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07674e-10
Minuit parameter uncertainties:
  1  35.2777
  2  51.8861
  3  2.61862
  4  3.40532e-06
  5  8.80013e-06
  6  9.70282e-05
  7  0.010237
  8  0.00213383
  9  0.00012568
  10  327.859
  11  0.00368956
  12  0.000704441
  13  92.0821
  14  0.00431878
  15  0.00304412
  16  0.00660812
  17  0.000889069
  18  0.00686858
  19  0.00114213
  20  1.39549e-05
  21  0.260772
Done.

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

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.257e-04  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.373e+00  2.608e-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.000e-02  1.395e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 116.628 27.515
Photon Flux Upper Limit: 1.21e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849302/likelihoodResults_648864001_649123201_4FGL_J0746.5+2730_daily_bin1580.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) = 789.180769792
delta logL = -2.56743261389e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 789.180744549
delta logL = -4.31918351751e-07

Fit tolerance = 1e-08

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

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

 FCN=   789.1807     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      276 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11059E-03    189.78        .18142E-01** at limit **
   2  Index         3.1589        8.3293        .50000        .21204E-05
   3  Normalizat    .10000E-01    .59872E-02    .12818E-01** at limit **
   4  Prefactor     1.3734        .12654E-01    .17856E-03    .79420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110588
  Index      = 3.15894
  Normalizat = 0.01
  Prefactor  = 1.37338
 **********
 **   18 **HESSE 
 **********

 FCN=   789.1807     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11059E-03    1070.2        .30043E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1589        6.7412        .50000       -.37709    
   3  Normalizat    .10000E-01    .35468E-01    .25635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3734        .30753E-01    .35711E-04   -.81151    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.03432e-09
Minuit parameter uncertainties:
  1  0.216896
  2  2088.22
  3  1.32887e-05
  4  0.0307532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849302': 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): 102
logL (Free Index) = 789.180744315
delta logL = -1.97136500901e-07

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  1.106e-04  2.169e-01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  3.159e+00  2.088e+03  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.373e+00  3.075e-02  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.000e-02  1.329e-05  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/849302/cmap_HighResolution_648864001_649123201_4FGL_J0746.5+2730_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-02', job_status='DONE', photon_flux_upper_limit='1.21e-06', time_completed='2021-08-28 11:27:47.782769', job_id='849302', GAL2='1.37', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630175267.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='-1.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1580' AND source_name='4FGL J0746.5+2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 11:27:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 849302: <4FGL_J0746.5+2730_daily_bin1580> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_daily_bin1580 116.628 27.5153 648864001 649123201 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 :                                   471.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             196.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            736 sec.

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

