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


Performing analysis on: 4FGL_J0746.4+2546_daily_bin1318
RA = 116.602, Dec = 25.7678
tmin = 580953601, tmax = 581212801
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='833223', job_status='RUN', time_executed='2021-08-28 10:34:39.014288', time_epoch_executed='1630172079.01' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833223

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833223/ft1_4FGL_J0746.4+2546_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833223/ft2_4FGL_J0746.4+2546_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833223/ft1_4FGL_J0746.4+2546_daily_bin1318.fits outfile=/scratch/kocevski/833223/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin1318.fits ra=116.602 dec=25.7678 rad=12.0 tmin=580953601.0 tmax=581212801.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.00
user 2.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833223/ft1_filtered_4FGL_J0746.4+2546_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/833223/ft2_4FGL_J0746.4+2546_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/833223/ltcube_580953601_581212801_4FGL_J0746.4+2546_daily_bin1318.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/833223/ft2_4FGL_J0746.4+2546_daily_bin1318.fits
.....................!
real 12.67
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833223/ft1_filtered_4FGL_J0746.4+2546_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/833223/ft2_4FGL_J0746.4+2546_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/833223/ltcube_580953601_581212801_4FGL_J0746.4+2546_daily_bin1318.fits outfile=/scratch/kocevski/833223/expmap_580953601_581212801_4FGL_J0746.4+2546_daily_bin1318.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/833223/ltcube_580953601_581212801_4FGL_J0746.4+2546_daily_bin1318.fits
.....................!
real 193.05
user 186.81
sys 4.80

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/833223/ft1_filtered_4FGL_J0746.4+2546_daily_bin1318.fits scfile=/scratch/kocevski/833223/ft2_4FGL_J0746.4+2546_daily_bin1318.fits outfile=/scratch/kocevski/833223/cmap_580953601_581212801_4FGL_J0746.4+2546_daily_bin1318.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.55
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833223/ft1_filtered_4FGL_J0746.4+2546_daily_bin1318.fits scfile=/scratch/kocevski/833223/ft2_4FGL_J0746.4+2546_daily_bin1318.fits outfile=/scratch/kocevski/833223/cmap_HighResolution_580953601_581212801_4FGL_J0746.4+2546_daily_bin1318.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .95889       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.117       1.0000         .10000E-03   10000.    
     8 'norm      '    .52079E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.369       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8762       1.0000         .10000E-03   10000.    
    13 'norm      '    .13187E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5556       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.150       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93736       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1212       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=   7171.252     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2014 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.467        .61514E-07** at limit **
   2  norm          .10000E-03    3.1355        .23019E-07** at limit **
   3  norm          .95854        .91221        .33473E-07   -.85236E-03
   4  Prefactor     .10000E-03    7.2967        .13542E-06** at limit **
   5  Prefactor     .10000E-03    17.344       -.11270E-05** at limit **
   6  norm          .10000E-03    .67396        .33754E-06** at limit **
   7  Prefactor     16.123        8.6340       -.36351E-05   -.23971E-03
   8  norm          .10000E-03    1.5569        .49684E-06** at limit **
   9  Prefactor     .10000E-03    21.012        .44701E-05** at limit **
  10  Prefactor     .10000E-03    5.2911        .59166E-08** at limit **
  11  Prefactor     24.326        33.973        .19129E-04   -.10638E-04
  12  Prefactor     2.8739        55.711       -.12636E-04   -.72719E-04
  13  norm          .53368E-01    6.8689        .13275E-05   -.29011E-03
  14  norm          .10000E-03    24.898       -.66532E-05** at limit **
  15  Prefactor     .10000E-03    29.514        .37001E-05** at limit **
  16  Prefactor     3.5596        25.969        .24210E-04   -.32917E-04
  17  Prefactor     4.6723        37.321       -.23425E-04   -.46908E-04
  18  Prefactor     29.155        17.827        .13536E-04    .55653E-03
  19  norm          .10000E-03    .44680       -.11466E-05** at limit **
  20  Normalizat    .93698        .18558       -.29248E-05    .16196E-03
  21  Prefactor     1.1214        .12669        .33620E-06   -.53071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.958541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.1226
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3258
  Prefactor  = 2.87391
  norm       = 0.0533681
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.55956
  Prefactor  = 4.67226
  Prefactor  = 29.1546
  norm       = 0.000100003
  Normalizat = 0.936983
  Prefactor  = 1.12141
 **********
 **   18 **HESSE 
 **********

 FCN=   7171.252     FROM HESSE     STATUS=OK           325 CALLS     2339 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.1405        .14644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .95854        .87764        .75053E-03   -1.5512    
   4  Prefactor     .10000E-03    7.5237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .68338        .13453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.123        8.5717        .99764E-04   -1.4905    
   8  norm          .10000E-03    9.6786        .19879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.326        33.828        .81145E-04   -1.4721    
  12  Prefactor     2.8739        54.172        .23966E-03   -1.5369    
  13  norm          .53368E-01    10.510        .67229E-01   -1.5662    
  14  norm          .10000E-03    24.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5596        25.597        .21435E-03   -1.5331    
  17  Prefactor     4.6723        37.653        .18599E-03   -1.5276    
  18  Prefactor     29.155        17.777        .74206E-04   -1.4628    
  19  norm          .10000E-03    2.2121        .10751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93698        .21043        .29506E-03   -.95173    
  21  Prefactor     1.1214        .14528        .19571E-03   -.88785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78185e-09
Minuit parameter uncertainties:
  1  2.35098e-05
  2  3.74738e-06
  3  0.877649
  4  3.84174e-05
  5  4.78968e-05
  6  2.75386e-05
  7  8.57231
  8  0.000164386
  9  7.459e-05
  10  8.90788e-07
  11  33.8542
  12  24.9805
  13  1.49673
  14  8.11872e-06
  15  0.000249683
  16  19.1022
  17  26.5501
  18  17.78
  19  0.00016993
  20  0.210612
  21  0.145333
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.000e-04  1.644e-04  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:  1.121e+00  1.453e-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.370e-01  2.106e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833223/likelihoodResults_580953601_581212801_4FGL_J0746.4+2546_daily_bin1318.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) = 7171.25228233
delta logL = -0.000492568716254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7171.25179031
delta logL = -5.49342075828e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11789E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5448       1.0000          .0000       5.0000    
     3 'Normalizat'    .93730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1212       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=   7171.252     FROM MIGRAD    STATUS=FAILED       113 CALLS      282 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10569E-03    50.714        .20588E-02** at limit **
   2  alpha         2.4135        3.5658        .16464        .58550E-04
   3  Normalizat    .93698        .19839        .29506E-03    .24016E-03
   4  Prefactor     1.1214        .14353        .19571E-03    .41523E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7171.252     FROM SIMPLEX   STATUS=UNCHANGED    113 CALLS      395 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10569E-03    50.714        .10617E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4135        3.5658        .48181E-03   -.34590E-01
   3  Normalizat    .93698        .19839        .55474E-04   -.95173    
   4  Prefactor     1.1214        .14353        .29774E-04   -.88785    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7171.252     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      423 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    47.356        .82353E-04** at limit **
   2  alpha         2.4137        3.5314        .65856E-01    .55412E-04
   3  Normalizat    .93698        .19848        .11802E-04    .45850E-03
   4  Prefactor     1.1214        .14363        .39143E-04    .62416E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.41368
  Normalizat = 0.936982
  Prefactor  = 1.12141
 **********
 **   18 **HESSE 
 **********

 FCN=   7171.252     FROM HESSE     STATUS=OK            23 CALLS      446 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    47.348        .16471E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4137        3.5314        .13171E-01   -.34535E-01
   3  Normalizat    .93698        .19845        .23605E-05   -.95173    
   4  Prefactor     1.1214        .14362        .78286E-05   -.88785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35425e-09
Minuit parameter uncertainties:
  1  0.000435716
  2  2.49852
  3  0.198603
  4  0.14367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833223': 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) = 7171.25178567
delta logL = 4.08844971389e-06

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.000e-04  4.357e-04  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.414e+00  2.499e+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:  1.121e+00  1.437e-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.370e-01  1.986e-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/833223/cmap_HighResolution_580953601_581212801_4FGL_J0746.4+2546_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2021-08-28 10:46:15.641174', job_id='833223', GAL2='1.12', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630172775.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1318' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:46:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 833223: <4FGL_J0746.4+2546_daily_bin1318> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin1318> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 28 10:30:58 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:31:06 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:31:06 2021
Terminated at Sat Aug 28 10:46:16 2021
Results reported at Sat Aug 28 10:46:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin1318 116.602 25.7678 580953601 581212801 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 :                                   670.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            918 sec.

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

