/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 43 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 = 7659
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0746.4+2546_daily_bin6
RA = 116.602, Dec = 25.7678
tmin = 240883201, tmax = 241142401
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='824655', job_status='RUN', time_executed='2021-08-28 10:08:38.471155', time_epoch_executed='1630170518.47' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824655

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824655/ft1_4FGL_J0746.4+2546_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824655/ft2_4FGL_J0746.4+2546_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/824655/ft1_4FGL_J0746.4+2546_daily_bin6.fits outfile=/scratch/kocevski/824655/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin6.fits ra=116.602 dec=25.7678 rad=12.0 tmin=240883201.0 tmax=241142401.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 8.93
user 1.32
sys 6.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/824655/ft1_filtered_4FGL_J0746.4+2546_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/824655/ft2_4FGL_J0746.4+2546_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/824655/ltcube_240883201_241142401_4FGL_J0746.4+2546_daily_bin6.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/824655/ft2_4FGL_J0746.4+2546_daily_bin6.fits
.....................!
real 20.72
user 12.10
sys 8.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824655/ft1_filtered_4FGL_J0746.4+2546_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/824655/ft2_4FGL_J0746.4+2546_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/824655/ltcube_240883201_241142401_4FGL_J0746.4+2546_daily_bin6.fits outfile=/scratch/kocevski/824655/expmap_240883201_241142401_4FGL_J0746.4+2546_daily_bin6.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/824655/ltcube_240883201_241142401_4FGL_J0746.4+2546_daily_bin6.fits
.....................!
real 198.52
user 184.96
sys 13.15

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/824655/ft1_filtered_4FGL_J0746.4+2546_daily_bin6.fits scfile=/scratch/kocevski/824655/ft2_4FGL_J0746.4+2546_daily_bin6.fits outfile=/scratch/kocevski/824655/cmap_240883201_241142401_4FGL_J0746.4+2546_daily_bin6.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 7.90
user 0.37
sys 7.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824655/ft1_filtered_4FGL_J0746.4+2546_daily_bin6.fits scfile=/scratch/kocevski/824655/ft2_4FGL_J0746.4+2546_daily_bin6.fits outfile=/scratch/kocevski/824655/cmap_HighResolution_240883201_241142401_4FGL_J0746.4+2546_daily_bin6.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 7.19
user 0.37
sys 6.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    24.881       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6615       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28238E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.080       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3455       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11395E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .53047E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    89.298       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12335E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.667       1.0000         .10000E-03   10000.    
    14 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .35717E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0490       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92946       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=   5754.655     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2333 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0169       -.42299E-06** at limit **
   2  norm          24.883        14.064        .29195E-06    .27178E-03
   3  norm          1.6617        .77272        .13613E-06    .15740E-02
   4  Prefactor     .10007E-03    252.25        .37575E-04** at limit **
   5  Prefactor     20.078        16.833        .51587E-06    .18658E-03
   6  norm          4.3438        1.9015       -.31381E-07   -.84376E-03
   7  Prefactor     .10001E-03    62.670        .15473E-04** at limit **
   8  norm          .10004E-03    4.5790       -.38087E-05** at limit **
   9  Prefactor     89.329        48.599        .22241E-05    .20318E-03
  10  Prefactor     .10000E-03    15.889       -.21050E-05** at limit **
  11  Prefactor     .10001E-03    48.574       -.35223E-05** at limit **
  12  Prefactor     .10000E-03    34.878        .19257E-06** at limit **
  13  norm          23.666        14.335        .57362E-06    .28132E-03
  14  norm          .10045E-03    371.37       -.25736E-04** at limit **
  15  Prefactor     .10000E-03    16.734       -.11710E-05** at limit **
  16  Prefactor     .10000E-03    13.042       -.58843E-06** at limit **
  17  Prefactor     .10000E-03    8.7507       -.42811E-06** at limit **
  18  Prefactor     .10000E-03    7.5075       -.83019E-06** at limit **
  19  norm          .35587E-01    .66207       -.72953E-06   -.18710E-03
  20  Normalizat    1.0490        .23192       -.34139E-05    .21967E-03
  21  Prefactor     .92938        .15495        .25959E-05   -.33876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 24.8825
  norm       = 1.66166
  Prefactor  = 0.000100072
  Prefactor  = 20.0776
  norm       = 4.34376
  Prefactor  = 0.000100009
  norm       = 0.000100036
  Prefactor  = 89.329
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 23.6657
  norm       = 0.000100446
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0355866
  Normalizat = 1.04901
  Prefactor  = 0.929382
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.655     FROM HESSE     STATUS=OK           325 CALLS     2658 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0348        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          24.883        14.116        .80307E-04   -1.4710    
   3  norm          1.6617        .77872        .44018E-04   -1.5450    
   4  Prefactor     .10007E-03    8.4372        .50342E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.078        16.853        .89383E-04   -1.4812    
   6  norm          4.3438        1.9037        .66669E-04   -1.5291    
   7  Prefactor     .10001E-03    63.262        .36131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10004E-03    5.4278        .38026E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     89.329        51.687        .42520E-04   -1.3815    
  10  Prefactor     .10000E-03    16.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    49.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.666        14.360        .82338E-04   -1.4735    
  14  norm          .10045E-03    392.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .35587E-01    4.7159        .11047E-02   -1.5670    
  20  Normalizat    1.0490        .24053        .28342E-03   -.91406    
  21  Prefactor     .92938        .15972        .20477E-03   -.95122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17606e-08
Minuit parameter uncertainties:
  1  4.00233e-05
  2  14.1179
  3  0.778722
  4  0.00155852
  5  16.8566
  6  1.90372
  7  0.00150775
  8  0.000889309
  9  51.7131
  10  0.000386304
  11  0.00109579
  12  8.21648e-05
  13  14.362
  14  0.0266321
  15  0.000205811
  16  9.29803e-05
  17  5.69704e-05
  18  9.61501e-05
  19  0.818239
  20  0.240785
  21  0.159803
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.000e-04  8.893e-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:  9.294e-01  1.598e-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.049e+00  2.408e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/824655/likelihoodResults_240883201_241142401_4FGL_J0746.4+2546_daily_bin6.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) = 5754.65528168
delta logL = -6.25710372333e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5754.65251539
delta logL = 0.00270371619354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24984       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0961       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92910       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5754.653     FROM MIGRAD    STATUS=FAILED       111 CALLS      355 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24825        13.462        .21866E-02    .19317E-02
   2  alpha         2.0975        3.4759        .11069       -.10428E-03
   3  Normalizat    1.0481        .22969        .28352E-03   -.34886E-05
   4  Prefactor     .92905        .15804        .20479E-03    .50517E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5754.653     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      438 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24825        13.462        .23626E-03   -1.5608    
   2  alpha         2.0975        3.4759        .48063E-02   -.16172    
   3  Normalizat    1.0481        .22969        .27045E-03   -.91437    
   4  Prefactor     .92905        .15804        .23798E-03   -.95133    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5754.653     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      472 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24826        11.875        .43732E-03    .16794E-04
   2  alpha         2.0975        3.5111        .22138E-01   -.48374E-06
   3  Normalizat    1.0481        .22987        .11341E-04   -.40099E-06
   4  Prefactor     .92905        .15811        .81917E-05   -.55513E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.248259
  alpha      = 2.09746
  Normalizat = 1.04807
  Prefactor  = 0.929049
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.653     FROM HESSE     STATUS=OK            27 CALLS      499 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24826        11.930        .17493E-04   -1.5608    
   2  alpha         2.0975        3.5096        .88554E-03   -.16172    
   3  Normalizat    1.0481        .22967        .22681E-05   -.91437    
   4  Prefactor     .92905        .15795        .16383E-05   -.95133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10395e-12
Minuit parameter uncertainties:
  1  3.442
  2  4.09604
  3  0.229883
  4  0.158032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824655': 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) = 5754.65251513
delta logL = 0.00270397796612

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  2.483e-01  3.442e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.097e+00  4.096e+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.290e-01  1.580e-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.048e+00  2.299e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/824655/cmap_HighResolution_240883201_241142401_4FGL_J0746.4+2546_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-08-28 10:20:34.192067', job_id='824655', GAL2='0.93', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630171234.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.70e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='6' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:20:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 824655: <4FGL_J0746.4+2546_daily_bin6> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin6> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Aug 28 10:05:43 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:05:45 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:05:45 2021
Terminated at Sat Aug 28 10:20:38 2021
Results reported at Sat Aug 28 10:20:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin6 116.602 25.7678 240883201 241142401 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 :                                   817.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

