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


Performing analysis on: 4FGL_J0746.5+2730_daily_bin1507
RA = 116.628, Dec = 27.5153
tmin = 629942401, tmax = 630201601
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='849181', job_status='RUN', time_executed='2021-08-28 11:19:36.724835', time_epoch_executed='1630174776.72' WHERE source_name='4FGL J0746.5+2730' and cadence='daily' and bin_id='1507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849181/ft1_4FGL_J0746.5+2730_daily_bin1507.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849181/ft2_4FGL_J0746.5+2730_daily_bin1507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849181/ft1_4FGL_J0746.5+2730_daily_bin1507.fits outfile=/scratch/kocevski/849181/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1507.fits ra=116.628 dec=27.5153 rad=12.0 tmin=629942401.0 tmax=630201601.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 5.39
user 4.48
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849181/ft2_4FGL_J0746.5+2730_daily_bin1507.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/849181/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1507.fits evtable="EVENTS" outfile="/scratch/kocevski/849181/ft1_filtered_4FGL_J0746.5+2730_daily_bin1507.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.30
user 0.33
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849181/ft1_filtered_4FGL_J0746.5+2730_daily_bin1507.fits" evtable="EVENTS" scfile=/scratch/kocevski/849181/ft2_4FGL_J0746.5+2730_daily_bin1507.fits sctable="SC_DATA" outfile=/scratch/kocevski/849181/ltcube_629942401_630201601_4FGL_J0746.5+2730_daily_bin1507.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/849181/ft2_4FGL_J0746.5+2730_daily_bin1507.fits
.....................!
real 17.56
user 11.38
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849181/ft1_filtered_4FGL_J0746.5+2730_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/849181/ft2_4FGL_J0746.5+2730_daily_bin1507.fits sctable="SC_DATA" expcube=/scratch/kocevski/849181/ltcube_629942401_630201601_4FGL_J0746.5+2730_daily_bin1507.fits outfile=/scratch/kocevski/849181/expmap_629942401_630201601_4FGL_J0746.5+2730_daily_bin1507.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/849181/ltcube_629942401_630201601_4FGL_J0746.5+2730_daily_bin1507.fits
.....................!
real 191.99
user 185.13
sys 5.59

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/849181/ft1_filtered_4FGL_J0746.5+2730_daily_bin1507.fits scfile=/scratch/kocevski/849181/ft2_4FGL_J0746.5+2730_daily_bin1507.fits outfile=/scratch/kocevski/849181/cmap_629942401_630201601_4FGL_J0746.5+2730_daily_bin1507.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.19
user 0.36
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849181/ft1_filtered_4FGL_J0746.5+2730_daily_bin1507.fits scfile=/scratch/kocevski/849181/ft2_4FGL_J0746.5+2730_daily_bin1507.fits outfile=/scratch/kocevski/849181/cmap_HighResolution_629942401_630201601_4FGL_J0746.5+2730_daily_bin1507.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.18
user 0.37
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.468       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .32417       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .81582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.1863       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.949       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    71.409       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.567       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.262       1.0000         .10000E-03   10000.    
    19 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1009       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81115       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=   6588.241     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2196 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.468        8.6930       -.48489E-06    .75550E-04
   2  norm          .10000E-03    3.5356       -.17616E-06** at limit **
   3  norm          .32430        .61285       -.60265E-06   -.22899E-02
   4  Prefactor     .82557        3.5148       -.26593E-05    .64866E-03
   5  Prefactor     .10000E-03    12.898        .81304E-06** at limit **
   6  norm          2.0403        1.5704       -.18418E-06    .43862E-03
   7  Prefactor     .10000E-03    13.254       -.43733E-05** at limit **
   8  norm          8.1848        5.3315       -.21527E-05    .14683E-03
   9  Prefactor     .10000E-03    27.061        .51286E-05** at limit **
  10  Prefactor     17.950        19.514       -.11686E-07    .84035E-04
  11  Prefactor     .10000E-03    25.527       -.20422E-05** at limit **
  12  Prefactor     .10000E-03    37.438        .12343E-06** at limit **
  13  norm          .10000E-03    8.8461        .71255E-05** at limit **
  14  norm          71.355        93.594       -.60664E-04    .37599E-05
  15  Prefactor     .10000E-03    8.0870       -.77932E-05** at limit **
  16  Prefactor     16.537        31.978       -.45140E-04    .42851E-04
  17  Prefactor     .10000E-03    7.2444        .27934E-05** at limit **
  18  Prefactor     28.267        20.834        .38904E-05    .88164E-04
  19  norm          .10000E-03    .36561       -.84551E-07** at limit **
  20  Normalizat    1.1008        .18240        .62432E-05    .37241E-03
  21  Prefactor     .81122        .11799        .10398E-05    .77686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4678
  norm       = 0.0001
  norm       = 0.324303
  Prefactor  = 0.825574
  Prefactor  = 0.0001
  norm       = 2.04028
  Prefactor  = 0.0001
  norm       = 8.18481
  Prefactor  = 0.0001
  Prefactor  = 17.9496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 71.3546
  Prefactor  = 0.000100001
  Prefactor  = 16.5367
  Prefactor  = 0.0001
  Prefactor  = 28.2672
  norm       = 0.0001
  Normalizat = 1.10075
  Prefactor  = 0.81122
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.241     FROM HESSE     STATUS=OK           317 CALLS     2513 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.468        8.6946        .11344E-03   -1.5002    
   2  norm          .10000E-03    3.5430        .14905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .32430        .58387        .81936E-03   -1.5594    
   4  Prefactor     .82557        13.120        .27622E-02   -1.5526    
   5  Prefactor     .10000E-03    13.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0403        1.5486        .85526E-04   -1.5422    
   7  Prefactor     .10000E-03    13.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.1848        5.3376        .13215E-03   -1.5136    
   9  Prefactor     .10000E-03    27.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.950        19.485        .94537E-04   -1.4860    
  11  Prefactor     .10000E-03    25.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.9838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          71.355        93.762        .23753E-03   -1.4017    
  15  Prefactor     .10000E-03    8.0597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.537        32.021        .98399E-04   -1.4894    
  17  Prefactor     .10000E-03    7.2512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.267        20.833        .75360E-04   -1.4644    
  19  norm          .10000E-03    .37137        .47757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1008        .21505        .25713E-03   -.89728    
  21  Prefactor     .81122        .13910        .20069E-03   -.99316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81915e-09
Minuit parameter uncertainties:
  1  8.6955
  2  1.05764e-05
  3  0.583882
  4  6.58364
  5  0.000152144
  6  1.54865
  7  3.40304e-05
  8  5.33792
  9  0.000141981
  10  19.4917
  11  3.07394e-06
  12  0.000182291
  13  0.0001127
  14  93.9571
  15  0.000148674
  16  32.0541
  17  1.14564e-05
  18  20.838
  19  5.61649e-06
  20  0.215221
  21  0.139162
Done.

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

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.420e-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:  8.112e-01  1.392e-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.101e+00  2.152e-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: 8.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849181/likelihoodResults_629942401_630201601_4FGL_J0746.5+2730_daily_bin1507.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) = 6588.24146423
delta logL = -0.000175777317963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6588.24128753
delta logL = 9.27644578042e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5962       1.0000          .0000       10.000    
     3 'Normalizat'    1.1007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81122       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=   6588.241     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      254 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10000        .90712E-01** at limit **
   2  Index         3.6281        6.5986        .50000       -.60229E-05
   3  Normalizat    1.1008        .55798E-03    .58144E-01   -.23004E-03
   4  Prefactor     .81122        .38165E-03    .43863E-01   -.15950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.62811
  Normalizat = 1.10075
  Prefactor  = 0.811218
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.241     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.78        .40579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6281        7.5120        .50000       -.27794    
   3  Normalizat    1.1008        .61210E-02    .25713E-03   -.89728    
   4  Prefactor     .81122        .41883E-02    .20069E-03   -.99316    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41425e-07
Minuit parameter uncertainties:
  1  0.000486029
  2  296.828
  3  0.00612098
  4  0.00418832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849181': 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) = 6588.24128748
delta logL = 9.70961991698e-07

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.860e-04  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  3.628e+00  2.968e+02  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.112e-01  4.188e-03  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.101e+00  6.121e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/849181/cmap_HighResolution_629942401_630201601_4FGL_J0746.5+2730_daily_bin1507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2021-08-28 11:30:51.410183', job_id='849181', GAL2='0.81', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630175451.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1507' AND source_name='4FGL J0746.5+2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 11:30:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 849181: <4FGL_J0746.5+2730_daily_bin1507> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_daily_bin1507 116.628 27.5153 629942401 630201601 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

