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


Performing analysis on: 4FGL_J0746.4+2546_daily_bin1138
RA = 116.602, Dec = 25.7678
tmin = 534297601, tmax = 534556801
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='832022', job_status='RUN', time_executed='2021-08-28 10:27:48.511062', time_epoch_executed='1630171668.51' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832022/ft1_4FGL_J0746.4+2546_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832022/ft2_4FGL_J0746.4+2546_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832022/ft1_4FGL_J0746.4+2546_daily_bin1138.fits outfile=/scratch/kocevski/832022/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1138.fits ra=116.602 dec=25.7678 rad=12.0 tmin=534297601.0 tmax=534556801.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.42
user 3.28
sys 1.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/832022/ft2_4FGL_J0746.4+2546_daily_bin1138.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/832022/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1138.fits evtable="EVENTS" outfile="/scratch/kocevski/832022/ft1_filtered_4FGL_J0746.4+2546_daily_bin1138.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 2.35
user 0.32
sys 1.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832022/ft1_filtered_4FGL_J0746.4+2546_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/832022/ft2_4FGL_J0746.4+2546_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/832022/ltcube_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.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/832022/ft2_4FGL_J0746.4+2546_daily_bin1138.fits
.....................!
real 14.21
user 11.92
sys 2.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832022/ft1_filtered_4FGL_J0746.4+2546_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/832022/ft2_4FGL_J0746.4+2546_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/832022/ltcube_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.fits outfile=/scratch/kocevski/832022/expmap_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.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/832022/ltcube_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.fits
.....................!
real 192.64
user 184.79
sys 7.36

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/832022/ft1_filtered_4FGL_J0746.4+2546_daily_bin1138.fits scfile=/scratch/kocevski/832022/ft2_4FGL_J0746.4+2546_daily_bin1138.fits outfile=/scratch/kocevski/832022/cmap_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.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 2.19
user 0.36
sys 1.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832022/ft1_filtered_4FGL_J0746.4+2546_daily_bin1138.fits scfile=/scratch/kocevski/832022/ft2_4FGL_J0746.4+2546_daily_bin1138.fits outfile=/scratch/kocevski/832022/cmap_HighResolution_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.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 2.29
user 0.38
sys 1.78

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/832022/ft1_filtered_4FGL_J0746.4+2546_daily_bin1138.fits', '/scratch/kocevski/832022/ft2_4FGL_J0746.4+2546_daily_bin1138.fits', expMap='/scratch/kocevski/832022/expmap_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.fits', expCube='/scratch/kocevski/832022/ltcube_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/832022/Model_4FGL_J0746.4+2546_daily_bin1138.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/832022/ft1_filtered_4FGL_J0746.4+2546_daily_bin1138.fits
Spacecraft file(s): /scratch/kocevski/832022/ft2_4FGL_J0746.4+2546_daily_bin1138.fits
Exposure map: /scratch/kocevski/832022/expmap_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.fits
Exposure cube: /scratch/kocevski/832022/ltcube_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/832022/Model_4FGL_J0746.4+2546_daily_bin1138.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) = 6877.60616807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4092       1.0000         .10000E-03   10000.    
     2 'norm      '    11.940       1.0000         .10000E-03   10000.    
     3 'norm      '    .18242       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75370E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .53390       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69768E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .13023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3212       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9488       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    26.499       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.548       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.504       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93790       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94836       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=   6877.520     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     1970 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4092        7.6601       -.37071E-06   -.12510E-03
   2  norm          11.942        13.466        .58468E-07    .36170E-04
   3  norm          .18254        .51887       -.41863E-06   -.13288E-02
   4  Prefactor     .10013E-03    14.078       -.10620E-06** at limit **
   5  Prefactor     .55162        7.0451        .20799E-08    .85050E-04
   6  norm          4.9678        1.8323        .29979E-06    .27388E-02
   7  Prefactor     .10057E-03    69.259       -.64799E-05** at limit **
   8  norm          .10000E-03    3.1904       -.15528E-05** at limit **
   9  Prefactor     7.3452        25.967       -.22189E-05   -.14301E-03
  10  Prefactor     13.928        13.882       -.72140E-06   -.23005E-03
  11  Prefactor     4.9409        30.080        .10961E-05    .58201E-04
  12  Prefactor     .10000E-03    28.564        .89875E-07** at limit **
  13  norm          26.498        13.028       -.46534E-07   -.81074E-04
  14  norm          .10000E-03    38.283        .92505E-07** at limit **
  15  Prefactor     .10000E-03    90.588        .39158E-05** at limit **
  16  Prefactor     22.533        20.307        .30523E-06   -.98501E-04
  17  Prefactor     13.503        14.229       -.63592E-08   -.23468E-04
  18  Prefactor     .10000E-03    19.688        .22843E-06** at limit **
  19  norm          .10000E-03    .50577       -.90611E-07** at limit **
  20  Normalizat    .93790        .17783        .37304E-06   -.22632E-03
  21  Prefactor     .94834        .12213       -.11741E-06   -.49368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.40925
  norm       = 11.9421
  norm       = 0.182539
  Prefactor  = 0.000100126
  Prefactor  = 0.55162
  norm       = 4.96778
  Prefactor  = 0.000100574
  norm       = 0.0001
  Prefactor  = 7.34517
  Prefactor  = 13.9277
  Prefactor  = 4.94087
  Prefactor  = 0.0001
  norm       = 26.4979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.533
  Prefactor  = 13.5025
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.937899
  Prefactor  = 0.94834
 **********
 **   18 **HESSE 
 **********

 FCN=   6877.520     FROM HESSE     STATUS=OK           329 CALLS     2299 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4092        7.7081        .14734E-03   -1.5164    
   2  norm          11.942        13.483        .11593E-03   -1.5017    
   3  norm          .18254        .62599        .88610E-03   -1.5623    
   4  Prefactor     .10013E-03    25.275        .25319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55162        54.643        .40092E-02   -1.5559    
   6  norm          4.9678        1.8222        .64820E-04   -1.5262    
   7  Prefactor     .10057E-03    113.32        .34323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.7004        .22008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3452        25.646        .14823E-03   -1.5166    
  10  Prefactor     13.928        13.802        .10736E-03   -1.4961    
  11  Prefactor     4.9409        30.017        .18079E-03   -1.5263    
  12  Prefactor     .10000E-03    28.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          26.498        13.038        .77821E-04   -1.4678    
  14  norm          .10000E-03    38.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    89.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.533        20.183        .84353E-04   -1.4758    
  17  Prefactor     13.503        14.231        .10900E-03   -1.4973    
  18  Prefactor     .10000E-03    19.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .85526        .11416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93790        .20277        .28002E-03   -.95141    
  21  Prefactor     .94834        .14092        .19448E-03   -.94472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06614e-08
Minuit parameter uncertainties:
  1  7.70913
  2  13.4863
  3  0.626014
  4  0.00357066
  5  10.9897
  6  1.82226
  7  0.0161594
  8  2.81407e-05
  9  25.6843
  10  13.8047
  11  24.3747
  12  3.53762e-05
  13  13.0392
  14  1.57936e-05
  15  0.000406259
  16  20.1888
  17  14.2346
  18  1.68748e-05
  19  9.59831e-07
  20  0.202932
  21  0.140975
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.000e-04  2.814e-05  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:  9.483e-01  1.410e-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:  9.379e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 116.602 25.768
Photon Flux Upper Limit: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832022/likelihoodResults_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.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) = 6877.52107156
delta logL = -0.00128811688228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6877.51978534
delta logL = -1.88926151168e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12120E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5831       1.0000          .0000       5.0000    
     3 'Normalizat'    .93784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94841       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6877.515     FROM MIGRAD    STATUS=FAILED       207 CALLS      355 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16991        10.853        .22776E-02    .57323E-02
   2  alpha         1.4885        2.9883        .50000       -.36656E-04
   3  Normalizat    .93823        .19621        .28002E-03   -.20990E-04
   4  Prefactor     .94733        .13899        .19448E-03   -.36887E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6877.515     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      429 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16991        10.853        .32304E-03   -1.5626    
   2  alpha         1.4885        2.9883        .99753E-02   -.41655    
   3  Normalizat    .93823        .19621        .16088E-03   -.95130    
   4  Prefactor     .94733        .13899        .10417E-03   -.94506    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6877.515     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      462 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16993        4.7223        .45552E-03   -.76246E-04
   2  alpha         1.4885        3.2075        .95942E-01   -.10025E-04
   3  Normalizat    .93823        .19623        .11201E-04   -.17458E-04
   4  Prefactor     .94733        .13816        .77791E-05   -.30690E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.16993
  alpha      = 1.48846
  Normalizat = 0.938229
  Prefactor  = 0.947329
 **********
 **   18 **HESSE 
 **********

 FCN=   6877.515     FROM HESSE     STATUS=OK            27 CALLS      489 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16993        4.9872        .18221E-04   -1.5626    
   2  alpha         1.4885        3.1906        .38377E-02   -.41656    
   3  Normalizat    .93823        .19649        .22401E-05   -.95130    
   4  Prefactor     .94733        .13829        .15558E-05   -.94506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20419e-11
Minuit parameter uncertainties:
  1  1.8408
  2  3.31091
  3  0.196637
  4  0.138344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832022': 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) = 6877.51500107
delta logL = 0.00478237561219

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.699e-01  1.841e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  1.488e+00  3.311e+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:  9.473e-01  1.383e-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:  9.382e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 116.602 25.768

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/832022/cmap_HighResolution_534297601_534556801_4FGL_J0746.4+2546_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-05', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-08-28 10:39:21.182265', job_id='832022', GAL2='0.95', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630172361.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.78e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1138' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:39:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 832022: <4FGL_J0746.4+2546_daily_bin1138> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin1138> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 10:26:41 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:26:48 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:48 2021
Terminated at Sat Aug 28 10:39:22 2021
Results reported at Sat Aug 28 10:39:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin1138 116.602 25.7678 534297601 534556801 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 :                                   713.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            761 sec.

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

