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


Performing analysis on: 4FGL_J0746.5+2730_daily_bin1147
RA = 116.628, Dec = 27.5153
tmin = 536630401, tmax = 536889601
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='846223', job_status='RUN', time_executed='2021-08-28 11:09:02.232347', time_epoch_executed='1630174142.23' WHERE source_name='4FGL J0746.5+2730' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846223/ft1_4FGL_J0746.5+2730_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846223/ft2_4FGL_J0746.5+2730_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846223/ft1_4FGL_J0746.5+2730_daily_bin1147.fits outfile=/scratch/kocevski/846223/ft1_filteredMKT_4FGL_J0746.5+2730_daily_bin1147.fits ra=116.628 dec=27.5153 rad=12.0 tmin=536630401.0 tmax=536889601.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.54
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846223/ft1_filtered_4FGL_J0746.5+2730_daily_bin1147.fits" evtable="EVENTS" scfile=/scratch/kocevski/846223/ft2_4FGL_J0746.5+2730_daily_bin1147.fits sctable="SC_DATA" outfile=/scratch/kocevski/846223/ltcube_536630401_536889601_4FGL_J0746.5+2730_daily_bin1147.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/846223/ft2_4FGL_J0746.5+2730_daily_bin1147.fits
.....................!
real 12.04
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846223/ft1_filtered_4FGL_J0746.5+2730_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/846223/ft2_4FGL_J0746.5+2730_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/846223/ltcube_536630401_536889601_4FGL_J0746.5+2730_daily_bin1147.fits outfile=/scratch/kocevski/846223/expmap_536630401_536889601_4FGL_J0746.5+2730_daily_bin1147.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/846223/ltcube_536630401_536889601_4FGL_J0746.5+2730_daily_bin1147.fits
.....................!
real 191.13
user 186.72
sys 4.02

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/846223/ft1_filtered_4FGL_J0746.5+2730_daily_bin1147.fits scfile=/scratch/kocevski/846223/ft2_4FGL_J0746.5+2730_daily_bin1147.fits outfile=/scratch/kocevski/846223/cmap_536630401_536889601_4FGL_J0746.5+2730_daily_bin1147.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 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846223/ft1_filtered_4FGL_J0746.5+2730_daily_bin1147.fits scfile=/scratch/kocevski/846223/ft2_4FGL_J0746.5+2730_daily_bin1147.fits outfile=/scratch/kocevski/846223/cmap_HighResolution_536630401_536889601_4FGL_J0746.5+2730_daily_bin1147.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 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2489       1.0000         .10000E-03   10000.    
     2 'norm      '    5.5080       1.0000         .10000E-03   10000.    
     3 'norm      '    .13642       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2343       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21892E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1633       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.296       1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.051       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    24.310       1.0000         .10000E-03   10000.    
    14 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.634       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.069       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3616       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70051       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=   7048.385     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2294 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2530        10.529        .59628E-06   -.63971E-05
   2  norm          5.5078        8.7946        .10994E-05    .17721E-05
   3  norm          .13629        .45884        .35835E-06   -.28488E-03
   4  Prefactor     2.2346        3.0181        .29567E-08   -.11511E-04
   5  Prefactor     .10000E-03    6.6270        .16242E-06** at limit **
   6  norm          4.1346        1.9875        .15206E-06    .13811E-02
   7  Prefactor     .10000E-03    7.6216       -.11434E-05** at limit **
   8  norm          4.1945        5.0490        .21396E-05    .39820E-03
   9  Prefactor     .22163        60.661       -.81466E-05    .13750E-03
  10  Prefactor     29.277        19.961        .18952E-05    .30046E-04
  11  Prefactor     65.056        49.497        .34358E-05    .93150E-04
  12  Prefactor     .10000E-03    22.944        .78564E-07** at limit **
  13  norm          24.310        13.161        .15833E-06   -.13617E-04
  14  norm          .10000E-03    123.60       -.25434E-05** at limit **
  15  Prefactor     51.635        32.551        .87972E-07    .10790E-04
  16  Prefactor     .10000E-03    10.296        .20152E-07** at limit **
  17  Prefactor     .10000E-03    11.868        .12818E-06** at limit **
  18  Prefactor     36.059        21.382        .15096E-05    .11279E-03
  19  norm          .10000E-03    .43942       -.30548E-06** at limit **
  20  Normalizat    1.3618        .20083       -.11855E-05    .19353E-03
  21  Prefactor     .70048        .12403       -.12730E-05    .58730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.25299
  norm       = 5.50777
  norm       = 0.136294
  Prefactor  = 2.23457
  Prefactor  = 0.0001
  norm       = 4.13458
  Prefactor  = 0.000100001
  norm       = 4.19453
  Prefactor  = 0.221626
  Prefactor  = 29.2768
  Prefactor  = 65.0558
  Prefactor  = 0.0001
  norm       = 24.3105
  norm       = 0.0001
  Prefactor  = 51.6347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.0588
  norm       = 0.0001
  Normalizat = 1.36181
  Prefactor  = 0.700483
 **********
 **   18 **HESSE 
 **********

 FCN=   7048.385     FROM HESSE     STATUS=OK           327 CALLS     2621 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2530        10.521        .16058E-03   -1.5208    
   2  norm          5.5078        8.7910        .17120E-03   -1.5239    
   3  norm          .13629        .56657        .98050E-03   -1.5634    
   4  Prefactor     2.2346        3.0050        .16468E-03   -1.5409    
   5  Prefactor     .10000E-03    6.6496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1346        1.7469        .69336E-04   -1.5301    
   7  Prefactor     .10000E-03    38.746        .37806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1945        5.7065        .89787E-03   -1.5298    
   9  Prefactor     .22163        65.022        .13447       -1.5614    
  10  Prefactor     29.277        19.841        .74021E-04   -1.4625    
  11  Prefactor     65.056        49.010        .49758E-04   -1.4093    
  12  Prefactor     .10000E-03    22.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.310        13.171        .81243E-04   -1.4721    
  14  norm          .10000E-03    123.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     51.635        32.575        .55813E-04   -1.4270    
  16  Prefactor     .10000E-03    10.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.059        21.141        .66729E-04   -1.4506    
  19  norm          .10000E-03    .63604        .10581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3618        .23526        .26499E-03   -.81740    
  21  Prefactor     .70048        .14617        .22788E-03   -1.0351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24995e-08
Minuit parameter uncertainties:
  1  10.5245
  2  8.79301
  3  0.555572
  4  3.00519
  5  1.82091e-05
  6  1.74689
  7  0.000437808
  8  5.70723
  9  7.59885
  10  19.845
  11  49.0403
  12  8.09034e-06
  13  13.1729
  14  8.94066e-05
  15  32.5864
  16  5.5645e-06
  17  1.88016e-05
  18  21.1454
  19  1.84439e-06
  20  0.235448
  21  0.146247
Done.

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

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  2.216e-01  7.599e+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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.005e-01  1.462e-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.362e+00  2.354e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846223/likelihoodResults_536630401_536889601_4FGL_J0746.5+2730_daily_bin1147.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) = 7048.38470833
delta logL = 1.73682665263e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7048.38452479
delta logL = 0.000200907044928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11443       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8003       1.0000          .0000       10.000    
     3 'Normalizat'    1.3619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70044       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7048.379     FROM MIGRAD    STATUS=CONVERGED    143 CALLS      370 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2263        147.16        .19160E-02   -.39435E-04
   2  Index         3.1422        6.5448        .13057E-01    .25169E-04
   3  Normalizat    1.3566        .22961        .26541E-03    .15815E-03
   4  Prefactor     .70212        .14403        .22763E-03   -.31415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22629
  Index      = 3.1422
  Normalizat = 1.35657
  Prefactor  = 0.702122
 **********
 **   18 **HESSE 
 **********

 FCN=   7048.379     FROM HESSE     STATUS=OK            27 CALLS      397 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2263        80.308        .76638E-04   -1.5410    
   2  Index         3.1422        3.8750        .26113E-02   -.38069    
   3  Normalizat    1.3566        .22908        .53081E-04   -.81893    
   4  Prefactor     .70212        .14416        .91051E-05   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39626e-10
Minuit parameter uncertainties:
  1  26.7807
  2  4.5849
  3  0.229256
  4  0.144241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846223': 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) = 7048.37949892
delta logL = 0.0052267750998

Extracting fit parameters...

4FGL J0746.5+2730
   Spectrum: PowerLaw
259    Prefactor:  2.226e+00  2.678e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  3.142e+00  4.585e+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:  7.021e-01  1.442e-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.357e+00  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 116.628 27.515

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/846223/cmap_HighResolution_536630401_536889601_4FGL_J0746.5+2730_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.49e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-08-28 11:20:43.156967', job_id='846223', GAL2='0.70', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630174843.16', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='5.23e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1147' AND source_name='4FGL J0746.5+2730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 11:20:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 846223: <4FGL_J0746.5+2730_daily_bin1147> in cluster <slac> Done

Job <4FGL_J0746.5+2730_daily_bin1147> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 11:05:42 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 11:05:43 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:05:43 2021
Terminated at Sat Aug 28 11:20:43 2021
Results reported at Sat Aug 28 11:20:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.5+2730_daily_bin1147 116.628 27.5153 536630401 536889601 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 :                                   690.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

