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


Performing analysis on: 4FGL_J0746.4+2546_daily_bin1034
RA = 116.602, Dec = 25.7678
tmin = 507340801, tmax = 507600001
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='831856', job_status='RUN', time_executed='2021-08-28 10:26:49.943421', time_epoch_executed='1630171609.94' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='1034'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831856/ft1_4FGL_J0746.4+2546_daily_bin1034.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831856/ft1_4FGL_J0746.4+2546_daily_bin1034.fits outfile=/scratch/kocevski/831856/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1034.fits ra=116.602 dec=25.7678 rad=12.0 tmin=507340801.0 tmax=507600001.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 3.92
user 3.30
sys 0.56

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.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/831856/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1034.fits evtable="EVENTS" outfile="/scratch/kocevski/831856/ft1_filtered_4FGL_J0746.4+2546_daily_bin1034.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 0.88
user 0.33
sys 0.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831856/ft1_filtered_4FGL_J0746.4+2546_daily_bin1034.fits" evtable="EVENTS" scfile=/scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits sctable="SC_DATA" outfile=/scratch/kocevski/831856/ltcube_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.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/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits
.....................!
real 15.06
user 14.10
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831856/ft1_filtered_4FGL_J0746.4+2546_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits sctable="SC_DATA" expcube=/scratch/kocevski/831856/ltcube_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.fits outfile=/scratch/kocevski/831856/expmap_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.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/831856/ltcube_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.fits
.....................!
real 192.85
user 184.98
sys 5.18

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 172 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.4+2546 @ 116.602 25.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/831856/ft1_filtered_4FGL_J0746.4+2546_daily_bin1034.fits scfile=/scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits outfile=/scratch/kocevski/831856/cmap_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.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.602 yref=25.7678 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 0.87
user 0.36
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831856/ft1_filtered_4FGL_J0746.4+2546_daily_bin1034.fits scfile=/scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits outfile=/scratch/kocevski/831856/cmap_HighResolution_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.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.602 yref=25.7678 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 0.97
user 0.38
sys 0.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/831856/ft1_filtered_4FGL_J0746.4+2546_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831856/Model_4FGL_J0746.4+2546_daily_bin1034.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/831856/ft1_filtered_4FGL_J0746.4+2546_daily_bin1034.fits.....................!
real 73.83
user 71.75
sys 1.71

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/831856/ft1_filtered_4FGL_J0746.4+2546_daily_bin1034.fits', '/scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits', expMap='/scratch/kocevski/831856/expmap_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.fits', expCube='/scratch/kocevski/831856/ltcube_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/831856/Model_4FGL_J0746.4+2546_daily_bin1034.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.4+2546'

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.783e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/831856/ft1_filtered_4FGL_J0746.4+2546_daily_bin1034.fits
Spacecraft file(s): /scratch/kocevski/831856/ft2_4FGL_J0746.4+2546_daily_bin1034.fits
Exposure map: /scratch/kocevski/831856/expmap_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.fits
Exposure cube: /scratch/kocevski/831856/ltcube_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/831856/Model_4FGL_J0746.4+2546_daily_bin1034.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) = 6413.83226351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    8.1691       1.0000         .10000E-03   10000.    
     3 'norm      '    .40261       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0183       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .56790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9682       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7229       1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34592E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.842       1.0000         .10000E-03   10000.    
    13 'norm      '    29.201       1.0000         .10000E-03   10000.    
    14 'norm      '    66.495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6721       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.377       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10929E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .58401       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3441       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6413.814     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2279 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3518       -.25219E-06** at limit **
   2  norm          8.1677        10.892        .32892E-05    .23043E-03
   3  norm          .40254        .51439        .82557E-07    .22902E-03
   4  Prefactor     3.0208        7.0113        .70780E-06    .37876E-04
   5  Prefactor     .10000E-03    9.0882       -.95400E-07** at limit **
   6  norm          .56612        1.6579        .41255E-06    .33841E-03
   7  Prefactor     2.9610        10.359       -.58971E-06   -.58598E-04
   8  norm          3.7254        5.2749        .36544E-06    .74305E-05
   9  Prefactor     58.318        55.417       -.44113E-06   -.33391E-04
  10  Prefactor     .10000E-03    17.303        .18010E-06** at limit **
  11  Prefactor     .10458E-03    36.313        .39363E-05** at limit **
  12  Prefactor     23.857        49.189        .55231E-07    .41708E-05
  13  norm          29.184        13.665        .33977E-07   -.16467E-04
  14  norm          66.631        82.608        .88889E-06    .51310E-04
  15  Prefactor     5.6828        29.043        .61595E-06   -.14939E-05
  16  Prefactor     28.357        28.162        .35960E-07    .32639E-04
  17  Prefactor     .10000E-03    9.6574        .35464E-08** at limit **
  18  Prefactor     .10000E-03    10.213        .90503E-07** at limit **
  19  norm          .58408        .91073        .65839E-07    .22106E-04
  20  Normalizat    1.3440        .20147        .53745E-06   -.20096E-03
  21  Prefactor     .77354        .12923       -.10781E-05   -.10918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.16772
  norm       = 0.402543
  Prefactor  = 3.02079
  Prefactor  = 0.0001
  norm       = 0.566125
  Prefactor  = 2.961
  norm       = 3.72536
  Prefactor  = 58.3177
  Prefactor  = 0.0001
  Prefactor  = 0.000104581
  Prefactor  = 23.8566
  norm       = 29.1838
  norm       = 66.6308
  Prefactor  = 5.68285
  Prefactor  = 28.3571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.584081
  Normalizat = 1.34402
  Prefactor  = 0.773542
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.814     FROM HESSE     STATUS=OK           335 CALLS     2614 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.007        .32224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.1677        10.847        .70136E-03   -1.5136    
   3  norm          .40254        .47745        .62717E-03   -1.5581    
   4  Prefactor     3.0208        7.0281        .23360E-03   -1.5360    
   5  Prefactor     .10000E-03    9.1935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .56612        1.5449        .12098E-02   -1.5557    
   7  Prefactor     2.9610        11.564        .23568E-03   -1.5364    
   8  norm          3.7254        5.2324        .18461E-03   -1.5322    
   9  Prefactor     58.318        55.296        .52508E-04   -1.4179    
  10  Prefactor     .10000E-03    17.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10458E-03    35.350        .12535       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.857        49.077        .82035E-04   -1.4731    
  13  norm          29.184        13.701        .74141E-04   -1.4627    
  14  norm          66.631        82.827        .24609E-03   -1.4074    
  15  Prefactor     5.6828        29.019        .16866E-03   -1.5231    
  16  Prefactor     28.357        28.195        .37604E-03   -1.4642    
  17  Prefactor     .10000E-03    9.6636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .58408        .91158        .46437E-04   -1.5555    
  20  Normalizat    1.3440        .23682        .25569E-03   -.82262    
  21  Prefactor     .77354        .14912        .21840E-03   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17533e-09
Minuit parameter uncertainties:
  1  8.82945e-05
  2  10.8492
  3  0.477454
  4  7.03003
  5  3.61494e-07
  6  1.54498
  7  11.5731
  8  5.23305
  9  55.3444
  10  1.31285e-05
  11  0.0254657
  12  49.1606
  13  13.703
  14  82.9712
  15  25.7031
  16  28.208
  17  1.74529e-07
  18  1.66571e-06
  19  0.911606
  20  0.237009
  21  0.1492
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  3.725e+00  5.233e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  7.735e-01  1.492e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.344e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 116.602 25.768
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/831856/likelihoodResults_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.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) = 6413.10928561
delta logL = 0.704713002659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6413.10306351
delta logL = 0.710935098848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6051       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7822       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80090       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6413.103     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 86.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6004        1.6914       -.54394E-06    .11769E-03
   2  alpha         4.7877        .82116        .60284E-04    .16236E-06
   3  Normalizat    1.2891        .19126        .45603E-06    .15073E-03
   4  Prefactor     .80099        .12615       -.14401E-06    .13044E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60041
  alpha      = 4.78765
  Normalizat = 1.28907
  Prefactor  = 0.800991
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.103     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6004        3.6745        .75137E-04   -1.5455    
   2  alpha         4.7877        4.8481        .72430E-01    1.1557    
   3  Normalizat    1.2891        .22463        .25993E-03   -.83893    
   4  Prefactor     .80099        .14743        .21506E-03   -.99692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69498e-07
Minuit parameter uncertainties:
  1  3.675
  2  2.47544
  3  0.224805
  4  0.147506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831856': 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) = 6413.10305845
delta logL = 0.710940163633

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.600e+00  3.675e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  4.788e+00  2.475e+00  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  8.010e-01  1.475e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.289e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 116.602 25.768
Photon Index (Free Index): 4.79 +/- 2.48
Photon Flux (Free Index): 7.80e-08 +/- 6.15e-08
Energy Flux (Free Index): 1.09e-05 +/- 9.20e-06

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/831856/cmap_HighResolution_507340801_507600001_4FGL_J0746.4+2546_daily_bin1034.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='7.11e-01', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-08-28 10:38:07.807006', photon_index_error2='2.48', photon_index2='4.79', ts='0.77', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='9.20e-06', EG='1.34', time_epoch_completed='1630172287.81', return_code='0', job_id='831856', GAL2='0.80', EG2='1.29', return_code2='0', photon_flux_error2='6.15e-08', ts2='2.30', photon_index='2.62' WHERE bin_id='1034' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:38:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 831856: <4FGL_J0746.4+2546_daily_bin1034> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin1034> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 10:26:27 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:26:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 10:26:29 2021
Terminated at Sat Aug 28 10:38:08 2021
Results reported at Sat Aug 28 10:38:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin1034 116.602 25.7678 507340801 507600001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.4+2546 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   674.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            701 sec.

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

