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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1225
RA = 193.307, Dec = 53.0173
tmin = 556848001, tmax = 557107201
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='960034', job_status='RUN', time_executed='2021-09-06 07:41:05.946163', time_epoch_executed='1630939265.95' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960034

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960034/ft1_4FGL_J1253.2+5301_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960034/ft1_4FGL_J1253.2+5301_daily_bin1225.fits outfile=/scratch/kocevski/960034/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1225.fits ra=193.307 dec=53.0173 rad=12.0 tmin=556848001.0 tmax=557107201.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 4.31
user 3.39
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.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/960034/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1225.fits evtable="EVENTS" outfile="/scratch/kocevski/960034/ft1_filtered_4FGL_J1253.2+5301_daily_bin1225.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.92
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960034/ft1_filtered_4FGL_J1253.2+5301_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/960034/ltcube_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.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/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits
.....................!
real 12.60
user 11.85
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960034/ft1_filtered_4FGL_J1253.2+5301_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/960034/ltcube_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.fits outfile=/scratch/kocevski/960034/expmap_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.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/960034/ltcube_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.fits
.....................!
real 191.66
user 185.89
sys 5.12

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
Added 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/960034/ft1_filtered_4FGL_J1253.2+5301_daily_bin1225.fits scfile=/scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits outfile=/scratch/kocevski/960034/cmap_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.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=193.307 yref=53.0173 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960034/ft1_filtered_4FGL_J1253.2+5301_daily_bin1225.fits scfile=/scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits outfile=/scratch/kocevski/960034/cmap_HighResolution_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.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=193.307 yref=53.0173 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960034/ft1_filtered_4FGL_J1253.2+5301_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960034/Model_4FGL_J1253.2+5301_daily_bin1225.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
Working on...
/scratch/kocevski/960034/ft1_filtered_4FGL_J1253.2+5301_daily_bin1225.fits......................!
real 32.93
user 31.53
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/960034/ft1_filtered_4FGL_J1253.2+5301_daily_bin1225.fits', '/scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits', expMap='/scratch/kocevski/960034/expmap_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.fits', expCube='/scratch/kocevski/960034/ltcube_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/960034/Model_4FGL_J1253.2+5301_daily_bin1225.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.2+5301'

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.003e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/960034/ft1_filtered_4FGL_J1253.2+5301_daily_bin1225.fits
Spacecraft file(s): /scratch/kocevski/960034/ft2_4FGL_J1253.2+5301_daily_bin1225.fits
Exposure map: /scratch/kocevski/960034/expmap_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.fits
Exposure cube: /scratch/kocevski/960034/ltcube_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/960034/Model_4FGL_J1253.2+5301_daily_bin1225.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) = 3030.17028143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8542       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .41412E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.817       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.983       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.277       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7206       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.227       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9237       1.0000         .10000E-03   10000.    
    14 'Prefactor '    68.739       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.269       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9820       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.1718       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.452       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.904       1.0000         .10000E-03   10000.    
    22 'norm      '    16.576       1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.641       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.2883       1.0000         .10000E-03   10000.    
    25 'norm      '    .38517       1.0000         .10000E-03   10000.    
    26 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.5237       1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.025       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96723       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .64393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3030.154     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     4549 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.396       -.33306E-07** at limit **
   2  norm          5.8247        18.736       -.12397E-04    .55299E-04
   3  Prefactor     .10000E-03    173.65        .10440E-05** at limit **
   4  Prefactor     .10024E-03    634.02        .88228E-05** at limit **
   5  Prefactor     .10000E-03    54.932       -.32785E-06** at limit **
   6  norm          .10000E-03    10.469       -.63021E-07** at limit **
   7  Prefactor     28.706        943.28       -.53381E-04   -.22971E-05
   8  norm          .10000E-03    11.362       -.13242E-06** at limit **
   9  Prefactor     40.984        40.651        .18921E-07    .31118E-05
  10  Prefactor     21.275        14.533       -.32752E-07    .72968E-05
  11  norm          3.7210        4.5920        .37772E-07    .24528E-04
  12  Prefactor     11.236        51.343        .39219E-06    .88554E-05
  13  norm          2.9236        2.5608        .12682E-07    .72975E-05
  14  Prefactor     68.757        65.120        .50888E-06    .23087E-04
  15  Prefactor     27.272        56.252        .57319E-07    .27682E-05
  16  Prefactor     3.9820        12.030        .44456E-06    .41811E-05
  17  norm          .10000E-03    7.7513       -.34618E-07** at limit **
  18  norm          7.1722        6.7027        .12787E-06    .12180E-03
  19  Prefactor     53.459        56.427       -.81872E-07    .24042E-04
  20  Prefactor     .10000E-03    10.430       -.97318E-07** at limit **
  21  Prefactor     18.882        50.221        .58976E-06   -.19386E-04
  22  norm          16.578        6.8222       -.13136E-07    .16515E-04
  23  Prefactor     40.649        46.655       -.30515E-07    .15189E-04
  24  Prefactor     6.2820        39.385        .12292E-06    .39650E-06
  25  norm          .38549        1.3142        .15509E-07   -.55054E-04
  26  norm          .10000E-03    23.161       -.29702E-08** at limit **
  27  norm          4.5237        3.0656        .38181E-07    .40752E-06
  28  Prefactor     20.135        69.833        .28339E-05    .93479E-04
  29  Normalizat    .96713        .23678        .15071E-05   -.75921E-04
  30  Prefactor     .64400        .27290       -.27617E-05    .40131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.82472
  Prefactor  = 0.000100003
  Prefactor  = 0.000100237
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.7058
  norm       = 0.0001
  Prefactor  = 40.984
  Prefactor  = 21.2747
  norm       = 3.72104
  Prefactor  = 11.2358
  norm       = 2.92364
  Prefactor  = 68.7571
  Prefactor  = 27.2716
  Prefactor  = 3.98201
  norm       = 0.0001
  norm       = 7.17217
  Prefactor  = 53.4592
  Prefactor  = 0.0001
  Prefactor  = 18.8823
  norm       = 16.5777
  Prefactor  = 40.649
  Prefactor  = 6.28197
  norm       = 0.385493
  norm       = 0.0001
  norm       = 4.52368
  Prefactor  = 20.1355
  Normalizat = 0.96713
  Prefactor  = 0.644
 **********
 **   18 **HESSE 
 **********

 FCN=   3030.154     FROM HESSE     STATUS=OK           592 CALLS     5141 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8247        18.736        .16598E-03   -1.5225    
   3  Prefactor     .10000E-03    173.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10024E-03    655.50        .38902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    54.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.511        .17396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.706        945.56        .74632E-04   -1.4636    
   8  norm          .10000E-03    11.395        .18123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.984        40.682        .62616E-04   -1.4427    
  10  Prefactor     21.275        14.545        .86833E-04   -1.4785    
  11  norm          3.7210        4.5793        .11499E-03   -1.5322    
  12  Prefactor     11.236        51.649        .11957E-03   -1.5037    
  13  norm          2.9236        2.5656        .80147E-04   -1.5366    
  14  Prefactor     68.757        65.159        .48414E-04   -1.4048    
  15  Prefactor     27.272        56.359        .76717E-04   -1.4663    
  16  Prefactor     3.9820        11.965        .20212E-03   -1.5309    
  17  norm          .10000E-03    7.7553        .14969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.1722        6.6948        .12562E-03   -1.5172    
  19  Prefactor     53.459        56.337        .54861E-04   -1.4244    
  20  Prefactor     .10000E-03    10.446        .17358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.882        49.552        .92119E-04   -1.4839    
  22  norm          16.578        6.8286        .85814E-04   -1.4893    
  23  Prefactor     40.649        46.764        .62877E-04   -1.4432    
  24  Prefactor     6.2820        39.656        .16007E-03   -1.5207    
  25  norm          .38549        1.2185        .10929E-02   -1.5584    
  26  norm          .10000E-03    23.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5237        3.0670        .75775E-04   -1.5283    
  28  Prefactor     20.135        69.993        .89505E-04   -1.4810    
  29  Normalizat    .96713        .28393        .21514E-03   -.94140    
  30  Prefactor     .64400        .31900        .31586E-03   -1.0576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97816e-09
Minuit parameter uncertainties:
  1  1.89462e-05
  2  18.7547
  3  0.00153233
  4  0.0252252
  5  0.000281541
  6  6.18396e-05
  7  335.446
  8  6.45571e-07
  9  40.7097
  10  14.5479
  11  4.5797
  12  48.2481
  13  2.56566
  14  65.2268
  15  56.4691
  16  11.972
  17  5.51843e-07
  18  6.69554
  19  56.3928
  20  2.87947e-05
  21  49.6605
  22  6.82894
  23  46.8058
  24  31.5977
  25  1.21861
  26  1.26737e-06
  27  3.06713
  28  70.2805
  29  0.284371
  30  0.3199
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.924e+00  2.566e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  6.440e-01  3.199e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  9.671e-01  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.27
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.80e-05

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) = 3028.87025423
delta logL = 1.28405477386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3028.74198717
delta logL = 1.41232183448

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3028.742     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3564        1.5570        .93811E-02    .23190E-03
   2  alpha         .77314        .48923        .27848       -.35827E-04
   3  Normalizat    .97372        .21595        .45836E-01   -.13533E-04
   4  Prefactor     .64860        .26460        .71188E-01    .11907E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35638
  alpha      = 0.773139
  Normalizat = 0.97372
  Prefactor  = 0.648604
 **********
 **   18 **HESSE 
 **********

 FCN=   3028.742     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3564        2.4133        .60112E-04   -1.5475    
   2  alpha         .77314        .72941        .12327E-02   -.76252    
   3  Normalizat    .97372        .25360        .21460E-03   -.93916    
   4  Prefactor     .64860        .31028        .31508E-03   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88952e-11
Minuit parameter uncertainties:
  1  2.41348
  2  0.750807
  3  0.253912
  4  0.311107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960034': 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) = 3028.74198614
delta logL = 1.41232285638

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.356e+00  2.413e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  7.731e-01  7.508e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  6.486e-01  3.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  9.737e-01  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.09
Ra Dec: 193.307 53.017
Photon Index (Free Index): 0.77 +/- 0.75
Photon Flux (Free Index): 9.36e-09 +/- 1.09e-08
Energy Flux (Free Index): 1.16e-04 +/- 1.57e-04

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/960034/cmap_HighResolution_556848001_557107201_4FGL_J1253.2+5301_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='1.16e-04', photon_flux_error='2.49e-08', dlogl='1.41e+00', energy_flux='2.05e-05', photon_flux2='9.36e-09', job_status='DONE', time_completed='2021-09-06 07:52:14.335039', photon_index_error2='0.75', photon_index2='0.77', ts='8.27', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='1.57e-04', EG='0.97', time_epoch_completed='1630939934.34', return_code='0', job_id='960034', GAL2='0.65', EG2='0.97', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='1.09e-08', ts2='11.09', photon_index='1.93' WHERE bin_id='1225' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 960034: <4FGL_J1253.2+5301_daily_bin1225> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1225> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 07:40:45 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:40:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:40:46 2021
Terminated at Mon Sep  6 07:52:14 2021
Results reported at Mon Sep  6 07:52:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1225 193.307 53.0173 556848001 557107201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.2+5301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   591.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            689 sec.

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

