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


Performing analysis on: 4FGL_J0746.5+2730_daily_bin1381
RA = 116.628, Dec = 27.5153
tmin = 597283201, tmax = 597542401
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='847694', job_status='RUN', time_executed='2021-08-28 11:13:49.151848', time_epoch_executed='1630174429.15' WHERE source_name='4FGL J0746.5+2730' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847694/ft1_4FGL_J0746.5+2730_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847694/ft2_4FGL_J0746.5+2730_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847694/ft1_4FGL_J0746.5+2730_daily_bin1381.fits outfile=/scratch/kocevski/847694/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1381.fits ra=116.628 dec=27.5153 rad=12.0 tmin=597283201.0 tmax=597542401.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.50
user 3.31
sys 1.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847694/ft2_4FGL_J0746.5+2730_daily_bin1381.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/847694/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1381.fits evtable="EVENTS" outfile="/scratch/kocevski/847694/ft1_filtered_4FGL_J0746.5+2730_daily_bin1381.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.47
user 0.32
sys 1.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847694/ft1_filtered_4FGL_J0746.5+2730_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/847694/ft2_4FGL_J0746.5+2730_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/847694/ltcube_597283201_597542401_4FGL_J0746.5+2730_daily_bin1381.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/847694/ft2_4FGL_J0746.5+2730_daily_bin1381.fits
.....................!
real 12.74
user 11.30
sys 1.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847694/ft1_filtered_4FGL_J0746.5+2730_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/847694/ft2_4FGL_J0746.5+2730_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/847694/ltcube_597283201_597542401_4FGL_J0746.5+2730_daily_bin1381.fits outfile=/scratch/kocevski/847694/expmap_597283201_597542401_4FGL_J0746.5+2730_daily_bin1381.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/847694/ltcube_597283201_597542401_4FGL_J0746.5+2730_daily_bin1381.fits
.....................!
real 191.88
user 185.58
sys 5.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/847694/ft1_filtered_4FGL_J0746.5+2730_daily_bin1381.fits scfile=/scratch/kocevski/847694/ft2_4FGL_J0746.5+2730_daily_bin1381.fits outfile=/scratch/kocevski/847694/cmap_597283201_597542401_4FGL_J0746.5+2730_daily_bin1381.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.55
user 0.36
sys 1.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847694/ft1_filtered_4FGL_J0746.5+2730_daily_bin1381.fits scfile=/scratch/kocevski/847694/ft2_4FGL_J0746.5+2730_daily_bin1381.fits outfile=/scratch/kocevski/847694/cmap_HighResolution_597283201_597542401_4FGL_J0746.5+2730_daily_bin1381.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.49
user 0.37
sys 1.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.7131       1.0000         .10000E-03   10000.    
     3 'norm      '    .80510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1770       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.124       1.0000         .10000E-03   10000.    
     6 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8008       1.0000         .10000E-03   10000.    
     8 'norm      '    .12905E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1650       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8603       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92816       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0984       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=   7554.257     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2240 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0653        .28771E-07** at limit **
   2  norm          5.7127        11.080        .51036E-06    .11690E-05
   3  norm          .80503        .58599       -.10949E-08   -.40952E-04
   4  Prefactor     3.1773        5.9192        .31895E-06    .24458E-03
   5  Prefactor     13.126        12.440       -.17290E-06    .12134E-04
   6  norm          .10000E-03    .86421       -.82710E-07** at limit **
   7  Prefactor     9.7951        9.3223        .29845E-06    .25341E-03
   8  norm          .10000E-03    4.7387       -.27551E-05** at limit **
   9  Prefactor     21.359        38.881        .29883E-07    .86514E-04
  10  Prefactor     .10000E-03    6.3627       -.21721E-06** at limit **
  11  Prefactor     .10000E-03    12.333       -.19347E-08** at limit **
  12  Prefactor     .10000E-03    25.707       -.23790E-05** at limit **
  13  norm          1.1760        24.291        .98162E-05   -.90312E-05
  14  norm          .10000E-03    115.78       -.31596E-06** at limit **
  15  Prefactor     5.8499        26.833        .36897E-06    .17024E-04
  16  Prefactor     .10000E-03    24.711        .91463E-06** at limit **
  17  Prefactor     27.767        24.173       -.13423E-06    .21912E-05
  18  Prefactor     .10000E-03    17.434       -.15028E-07** at limit **
  19  norm          .10000E-03    .34910        .12528E-07** at limit **
  20  Normalizat    .92812        .19086        .90246E-07    .31937E-03
  21  Prefactor     1.0984        .12358       -.80032E-07    .73409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.71268
  norm       = 0.805033
  Prefactor  = 3.1773
  Prefactor  = 13.1255
  norm       = 0.0001
  Prefactor  = 9.79509
  norm       = 0.0001
  Prefactor  = 21.3588
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17603
  norm       = 0.0001
  Prefactor  = 5.84992
  Prefactor  = 0.0001
  Prefactor  = 27.7669
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.928121
  Prefactor  = 1.09842
 **********
 **   18 **HESSE 
 **********

 FCN=   7554.257     FROM HESSE     STATUS=OK           317 CALLS     2557 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0714        .14860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7127        11.117        .84024E-03   -1.5230    
   3  norm          .80503        .59703        .54703E-04   -1.5529    
   4  Prefactor     3.1773        5.9075        .22736E-03   -1.5351    
   5  Prefactor     13.126        12.449        .11057E-03   -1.4983    
   6  norm          .10000E-03    1.3572        .14089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7951        8.3896        .12800E-03   -1.5082    
   8  norm          .10000E-03    4.7862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.359        38.967        .86748E-04   -1.4783    
  10  Prefactor     .10000E-03    6.3757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1760        24.369        .21306E-02   -1.5491    
  14  norm          .10000E-03    116.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8499        26.799        .16589E-03   -1.5224    
  16  Prefactor     .10000E-03    24.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.767        24.192        .76020E-04   -1.4654    
  18  Prefactor     .10000E-03    17.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .36012        .10019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .92812        .21766        .30679E-03   -.95479    
  21  Prefactor     1.0984        .14268        .19229E-03   -.89517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96996e-09
Minuit parameter uncertainties:
  1  1.91489e-06
  2  11.121
  3  0.597034
  4  5.90856
  5  12.4514
  6  5.0991e-06
  7  8.39057
  8  2.66859e-05
  9  39.0133
  10  5.50388e-06
  11  9.53088e-06
  12  0.000219752
  13  10.7112
  14  0.00028893
  15  25.0602
  16  0.000184911
  17  24.2002
  18  6.18185e-05
  19  1.7097e-06
  20  0.217868
  21  0.142731
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.098e+00  1.427e-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:  9.281e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 116.628 27.515
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847694/likelihoodResults_597283201_597542401_4FGL_J0746.5+2730_daily_bin1381.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) = 7554.25645605
delta logL = 0.000107588667561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7554.2563638
delta logL = 0.000199839388188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.776       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5941       1.0000          .0000       10.000    
     3 'Normalizat'    .92888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0981       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=   7554.256     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      274 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.816        48.724        .85834E-04    .29139E-05
   2  Index         2.5959        1.3834        .14506E-01    .15253E-04
   3  Normalizat    .92870        .21185        .30671E-03    .19734E-03
   4  Prefactor     1.0981        .14171        .19231E-03   -.29701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8163
  Index      = 2.5959
  Normalizat = 0.928701
  Prefactor  = 1.09812
 **********
 **   18 **HESSE 
 **********

 FCN=   7554.256     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.816        45.346        .34334E-05   -1.4773    
   2  Index         2.5959        1.2892        .58025E-03   -.50159    
   3  Normalizat    .92870        .21194        .12268E-04   -.95459    
   4  Prefactor     1.0981        .14167        .38462E-04   -.89527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16992e-10
Minuit parameter uncertainties:
  1  45.4182
  2  1.30852
  3  0.212133
  4  0.141718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847694': 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) = 7554.25636016
delta logL = 0.000203485946258

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  2.182e+01  4.542e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.596e+00  1.309e+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.098e+00  1.417e-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:  9.287e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/847694/cmap_HighResolution_597283201_597542401_4FGL_J0746.5+2730_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-08-28 11:25:57.625620', job_id='847694', GAL2='1.10', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630175157.63', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.03e-04', ts2='0.37', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1381' AND source_name='4FGL J0746.5+2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 11:25:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 847694: <4FGL_J0746.5+2730_daily_bin1381> in cluster <slac> Done

Job <4FGL_J0746.5+2730_daily_bin1381> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 11:10:21 2021
Job was executed on host(s) <bullet0239>, 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:25:58 2021
Results reported at Sat Aug 28 11:25:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_daily_bin1381 116.628 27.5153 597283201 597542401 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 :                                   729.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

