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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin94
RA = 193.307, Dec = 53.0173
tmin = 263692801, tmax = 263952001
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='953588', job_status='RUN', time_executed='2021-09-06 07:20:36.232494', time_epoch_executed='1630938036.23' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953588/ft1_4FGL_J1253.2+5301_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953588/ft2_4FGL_J1253.2+5301_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953588/ft1_4FGL_J1253.2+5301_daily_bin94.fits outfile=/scratch/kocevski/953588/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin94.fits ra=193.307 dec=53.0173 rad=12.0 tmin=263692801.0 tmax=263952001.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 1.80
user 1.47
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953588/ft2_4FGL_J1253.2+5301_daily_bin94.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/953588/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin94.fits evtable="EVENTS" outfile="/scratch/kocevski/953588/ft1_filtered_4FGL_J1253.2+5301_daily_bin94.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.56
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953588/ft1_filtered_4FGL_J1253.2+5301_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/953588/ft2_4FGL_J1253.2+5301_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/953588/ltcube_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.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/953588/ft2_4FGL_J1253.2+5301_daily_bin94.fits
.....................!
real 12.39
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953588/ft1_filtered_4FGL_J1253.2+5301_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/953588/ft2_4FGL_J1253.2+5301_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/953588/ltcube_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.fits outfile=/scratch/kocevski/953588/expmap_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.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/953588/ltcube_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.fits
.....................!
real 194.27
user 186.28
sys 5.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
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/953588/ft1_filtered_4FGL_J1253.2+5301_daily_bin94.fits scfile=/scratch/kocevski/953588/ft2_4FGL_J1253.2+5301_daily_bin94.fits outfile=/scratch/kocevski/953588/cmap_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.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.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953588/ft1_filtered_4FGL_J1253.2+5301_daily_bin94.fits scfile=/scratch/kocevski/953588/ft2_4FGL_J1253.2+5301_daily_bin94.fits outfile=/scratch/kocevski/953588/cmap_HighResolution_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953588/ft1_filtered_4FGL_J1253.2+5301_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/953588/ft2_4FGL_J1253.2+5301_daily_bin94.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953588/Model_4FGL_J1253.2+5301_daily_bin94.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/953588/ft1_filtered_4FGL_J1253.2+5301_daily_bin94.fits.....................!
real 50.05
user 48.51
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953588/ft1_filtered_4FGL_J1253.2+5301_daily_bin94.fits', '/scratch/kocevski/953588/ft2_4FGL_J1253.2+5301_daily_bin94.fits', expMap='/scratch/kocevski/953588/expmap_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.fits', expCube='/scratch/kocevski/953588/ltcube_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953588/Model_4FGL_J1253.2+5301_daily_bin94.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/953588/ft1_filtered_4FGL_J1253.2+5301_daily_bin94.fits
Spacecraft file(s): /scratch/kocevski/953588/ft2_4FGL_J1253.2+5301_daily_bin94.fits
Exposure map: /scratch/kocevski/953588/expmap_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.fits
Exposure cube: /scratch/kocevski/953588/ltcube_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953588/Model_4FGL_J1253.2+5301_daily_bin94.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) = 5830.02174552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6839       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .25139       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0831       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5796       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.023       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9933       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.9562       1.0000         .10000E-03   10000.    
    18 'norm      '    19.254       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8481       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.128       1.0000         .10000E-03   10000.    
    22 'norm      '    .23408E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.665       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .85960       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0760       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91379       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=   5830.019     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     3934 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .76242        .23697E-07** at limit **
   2  norm          2.6849        5.1025        .37752E-05   -.20216E-03
   3  Prefactor     .10000E-03    7.4381        .59656E-07** at limit **
   4  Prefactor     .10000E-03    4.1995        .23915E-07** at limit **
   5  Prefactor     .10000E-03    17.179        .61728E-07** at limit **
   6  norm          .10000E-03    .65094        .87776E-08** at limit **
   7  Prefactor     .10000E-03    25.922        .53524E-06** at limit **
   8  norm          .25591        4.0395        .87441E-06   -.14451E-03
   9  Prefactor     .10000E-03    28.234        .15264E-06** at limit **
  10  Prefactor     2.0826        6.3193        .12218E-05    .34700E-04
  11  norm          3.5795        2.7672       -.16056E-06   -.31535E-03
  12  Prefactor     .10000E-03    39.188        .39695E-06** at limit **
  13  norm          2.1662        2.7403        .16938E-06   -.24442E-03
  14  Prefactor     27.024        31.043        .42131E-06   -.25854E-04
  15  Prefactor     1.8696        417.33        .88454E-05   -.18065E-04
  16  Prefactor     .10000E-03    3.0457       -.59039E-07** at limit **
  17  norm          8.9564        9.3674       -.26969E-06   -.21425E-03
  18  norm          19.252        6.6684       -.30297E-06   -.15066E-02
  19  Prefactor     .10000E-03    46.469        .41636E-05** at limit **
  20  Prefactor     1.8491        15.865        .80886E-05   -.29962E-03
  21  Prefactor     40.117        33.848       -.19136E-05   -.58507E-03
  22  norm          .10006E-03    2.4809        .17462E-05** at limit **
  23  Prefactor     .10000E-03    60.862       -.93503E-06** at limit **
  24  Prefactor     26.661        40.624        .16658E-05    .12348E-04
  25  norm          .10000E-03    .62742        .22085E-06** at limit **
  26  norm          .10000E-03    25.765        .57822E-06** at limit **
  27  norm          .85925        1.8523       -.18372E-06   -.86624E-03
  28  Prefactor     .10000E-03    35.119       -.10487E-05** at limit **
  29  Normalizat    1.0760        .16595       -.14111E-05   -.99700E-03
  30  Prefactor     .91371        .19959       -.11684E-05   -.74161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.68488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.25591
  Prefactor  = 0.000100001
  Prefactor  = 2.08258
  norm       = 3.57948
  Prefactor  = 0.0001
  norm       = 2.16622
  Prefactor  = 27.0235
  Prefactor  = 1.8696
  Prefactor  = 0.0001
  norm       = 8.95641
  norm       = 19.2518
  Prefactor  = 0.000100003
  Prefactor  = 1.84907
  Prefactor  = 40.1167
  norm       = 0.000100064
  Prefactor  = 0.000100001
  Prefactor  = 26.6615
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.859249
  Prefactor  = 0.0001
  Normalizat = 1.07603
  Prefactor  = 0.91371
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.019     FROM HESSE     STATUS=OK           582 CALLS     4516 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .76604        .65105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6849        5.0981        .11387E-02   -1.5380    
   3  Prefactor     .10000E-03    7.4561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2378        .15272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .67025        .12026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .25591        12.875        .29349E-02   -1.5607    
   9  Prefactor     .10000E-03    28.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0826        6.2685        .28483E-03   -1.5419    
  11  norm          3.5795        2.7526        .95709E-04   -1.5330    
  12  Prefactor     .10000E-03    39.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1662        2.7260        .13497E-03   -1.5414    
  14  Prefactor     27.024        31.042        .77064E-04   -1.4668    
  15  Prefactor     1.8696        420.44        .29343E-03   -1.5434    
  16  Prefactor     .10000E-03    3.0496        .13012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.9564        9.3596        .13393E-03   -1.5109    
  18  norm          19.252        6.7037        .91278E-04   -1.4830    
  19  Prefactor     .10000E-03    47.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8491        15.467        .15336E-02   -1.5436    
  21  Prefactor     40.117        34.309        .63276E-04   -1.4440    
  22  norm          .10006E-03    21.437        .21257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    61.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.661        40.740        .77579E-04   -1.4675    
  25  norm          .10000E-03    .64017        .59169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    25.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .85925        1.4273        .14872E-02   -1.5523    
  28  Prefactor     .10000E-03    35.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0760        .19473        .21509E-03   -.90525    
  30  Prefactor     .91371        .23403        .28740E-03   -.95664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98715e-08
Minuit parameter uncertainties:
  1  1.64239e-06
  2  5.09896
  3  1.20591e-05
  4  1.84441e-06
  5  4.08977e-06
  6  7.88478e-07
  7  5.87978e-05
  8  3.63052
  9  0.000270625
  10  6.27046
  11  2.75273
  12  0.000201264
  13  2.72619
  14  31.0601
  15  56.4777
  16  6.47812e-06
  17  9.36115
  18  6.70392
  19  0.000774106
  20  10.6993
  21  34.3259
  22  0.00234061
  23  0.000378729
  24  40.7827
  25  1.26954e-05
  26  6.01171e-05
  27  1.4274
  28  0.000218296
  29  0.194855
  30  0.234285
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.166e+00  2.726e+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:  9.137e-01  2.343e-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:  1.076e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953588/likelihoodResults_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.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) = 5828.39831079
delta logL = 1.62104548234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5828.34233344
delta logL = 1.67702283191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87409E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4543       1.0000          .0000       5.0000    
     3 'Normalizat'    .95481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0231       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=   5828.342     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      283 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85826E-01    .77558        .26964E-02   -.34724E-02
   2  alpha         4.4626        4.5145        .27643       -.19831E-05
   3  Normalizat    .95528        .51816E-01    .45598E-01   -.12654E-03
   4  Prefactor     1.0227        .64967E-01    .61806E-01   -.69958E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0858262
  alpha      = 4.46261
  Normalizat = 0.955284
  Prefactor  = 1.02266
 **********
 **   18 **HESSE 
 **********

 FCN=   5828.342     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      316 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85826E-01    1.3109        .12107E-04   -1.5649    
   2  alpha         4.4626        4.7214        .12897E-01    .90277    
   3  Normalizat    .95528        .17210        .22607E-03   -.94544    
   4  Prefactor     1.0227        .21306        .27334E-03   -.91978    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.80088e-09
Minuit parameter uncertainties:
  1  0.670476
  2  3.63541
  3  0.172195
  4  0.213241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953588': 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): 102
logL (Free Index) = 5828.34231958
delta logL = 1.67703669373

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  8.583e-02  6.705e-01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  4.463e+00  3.635e+00  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:  1.023e+00  2.132e-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.553e-01  1.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 193.307 53.017
Photon Index (Free Index): 4.46 +/- 3.64
Photon Flux (Free Index): 9.74e-08 +/- 5.44e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.07e-05

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/953588/cmap_HighResolution_263692801_263952001_4FGL_J1253.2+5301_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-05', comment='SUCCESS', energy_flux2='1.42e-05', dlogl='1.68e+00', photon_flux2='9.74e-08', job_status='DONE', time_completed='2021-09-06 07:36:17.656650', photon_index_error2='3.64', photon_index2='4.46', ts='0.78', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.85e-08', energy_flux_error2='1.07e-05', EG='1.08', time_epoch_completed='1630938977.66', return_code='0', job_id='953588', GAL2='1.02', EG2='0.96', return_code2='102', photon_flux_error2='5.44e-08', ts2='4.41', photon_index='1.93' WHERE bin_id='94' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:36:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 953588: <4FGL_J1253.2+5301_daily_bin94> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin94> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:20:23 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:20:24 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:20:24 2021
Terminated at Mon Sep  6 07:36:18 2021
Results reported at Mon Sep  6 07:36:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin94 193.307 53.0173 263692801 263952001 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 :                                   933.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

