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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin1275
RA = 35.8128, Dec = -16.8868
tmin = 569808001, tmax = 570067201
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='351230', job_status='RUN', time_executed='2021-08-15 19:55:00.018054', time_epoch_executed='1629082500.02' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351230/ft1_4FGL_J0223.2-1653_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351230/ft1_4FGL_J0223.2-1653_daily_bin1275.fits outfile=/scratch/kocevski/351230/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1275.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=569808001.0 tmax=570067201.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 6.88
user 2.68
sys 3.94

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.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/351230/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1275.fits evtable="EVENTS" outfile="/scratch/kocevski/351230/ft1_filtered_4FGL_J0223.2-1653_daily_bin1275.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 4.38
user 0.29
sys 3.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351230/ft1_filtered_4FGL_J0223.2-1653_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/351230/ltcube_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.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/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits
.....................!
real 18.64
user 13.72
sys 4.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351230/ft1_filtered_4FGL_J0223.2-1653_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/351230/ltcube_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.fits outfile=/scratch/kocevski/351230/expmap_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.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/351230/ltcube_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.fits
.....................!
real 161.16
user 151.76
sys 8.60

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

Setting source of interest to:
4FGL J0223.2-1653 @ 35.8128 -16.8868

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351230/ft1_filtered_4FGL_J0223.2-1653_daily_bin1275.fits scfile=/scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits outfile=/scratch/kocevski/351230/cmap_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.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=35.8128 yref=-16.8868 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 4.20
user 0.33
sys 3.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351230/ft1_filtered_4FGL_J0223.2-1653_daily_bin1275.fits scfile=/scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits outfile=/scratch/kocevski/351230/cmap_HighResolution_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.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=35.8128 yref=-16.8868 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 4.34
user 0.32
sys 3.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351230/ft1_filtered_4FGL_J0223.2-1653_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351230/Model_4FGL_J0223.2-1653_daily_bin1275.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/351230/ft1_filtered_4FGL_J0223.2-1653_daily_bin1275.fits.....................!
real 54.01
user 47.58
sys 5.87

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351230/ft1_filtered_4FGL_J0223.2-1653_daily_bin1275.fits', '/scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits', expMap='/scratch/kocevski/351230/expmap_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.fits', expCube='/scratch/kocevski/351230/ltcube_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351230/Model_4FGL_J0223.2-1653_daily_bin1275.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0223.2-1653'

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  9.003e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  4.228e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  7.318e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351230/ft1_filtered_4FGL_J0223.2-1653_daily_bin1275.fits
Spacecraft file(s): /scratch/kocevski/351230/ft2_4FGL_J0223.2-1653_daily_bin1275.fits
Exposure map: /scratch/kocevski/351230/expmap_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.fits
Exposure cube: /scratch/kocevski/351230/ltcube_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351230/Model_4FGL_J0223.2-1653_daily_bin1275.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) = 6273.36500674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.0574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.263       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .92914E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18227E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3961       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.904       1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.355       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0665       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+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.

 FCN=   6273.178     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     2447 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6154        .18142E-02** at limit **
   2  norm          1.0567        1.8378        .13266E-03   -.58530E-04
   3  Prefactor     11.262        4.2065        .95198E-04   -.17650E-03
   4  Prefactor     .56673E-01    12.814        .59512E-01    .18799E-03
   5  Prefactor     .10000E-03    2.1285        .11283E-02** at limit **
   6  Prefactor     .10000E-03    5.4335        .35363E-03** at limit **
   7  Prefactor     .10000E-03    2.9457        .13237E-02** at limit **
   8  Prefactor     .10000E-03    6.0140        .18142E-02** at limit **
   9  norm          .10000E-03    15.923        .18142E-02** at limit **
  10  Prefactor     1.2466        4.6853        .31489E-03   -.44227E-04
  11  Prefactor     .10000E-03    33.618        .12023    ** at limit **
  12  Prefactor     .10000E-03    6.2098        .18142E-02** at limit **
  13  Prefactor     .10000E-03    30.713        .18142E-02** at limit **
  14  norm          3.3954        1.6823        .69221E-04   -.22320E-03
  15  Prefactor     16.900        8.4936        .97414E-04   -.10538E-03
  16  Prefactor     54.350        43.779        .54405E-04    .43464E-05
  17  norm          .10000E-03    2.8200        .25576E-03** at limit **
  18  Prefactor     .10000E-03    4.7753        .16881E-02** at limit **
  19  Normalizat    1.0668        .17946        .21077E-03   -.30073E-03
  20  Prefactor     .80403        .18104        .25529E-03   -.51510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.05671
  Prefactor  = 11.2622
  Prefactor  = 0.0566728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.24664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.3954
  Prefactor  = 16.8995
  Prefactor  = 54.3503
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06677
  Prefactor  = 0.804034
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.178     FROM HESSE     STATUS=OK           291 CALLS     2738 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0567        1.8373        .53066E-05   -1.5502    
   3  Prefactor     11.262        4.2062        .38079E-05   -1.5037    
   4  Prefactor     .56673E-01    10.041        .69315E-01   -1.5660    
   5  Prefactor     .10000E-03    2.1285        .22567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4338        .70726E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9460        .26473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2466        4.6840        .12596E-04   -1.5485    
  11  Prefactor     .10000E-03    33.224        .12119       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3954        1.6822        .27688E-05   -1.5339    
  15  Prefactor     16.900        8.4925        .38966E-05   -1.4886    
  16  Prefactor     54.350        43.778        .10881E-04   -1.4232    
  17  norm          .10000E-03    2.8200        .51152E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7757        .33761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0668        .17947        .42154E-04   -.90826    
  20  Prefactor     .80403        .18119        .51058E-04   -.99580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0338e-10
Minuit parameter uncertainties:
  1  1.56819e-06
  2  1.83741
  3  4.20629
  4  1.50761
  5  9.09399e-07
  6  3.02092e-05
  7  6.33712e-06
  8  1.76729e-05
  9  1.04311e-05
  10  4.68539
  11  0.000209063
  12  1.94465e-05
  13  0.000114473
  14  1.6822
  15  8.49314
  16  43.8036
  17  8.40516e-06
  18  8.86506e-06
  19  0.179567
  20  0.181324
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  1.043e-05  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  4.228e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  7.318e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.040e-01  1.813e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.067e+00  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.813 -16.887
Photon Flux Upper Limit: 4.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351230/likelihoodResults_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.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) = 6273.17803432
delta logL = -0.000299080357763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6273.17774224
delta logL = -7.00265809428e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0990       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+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.

 FCN=   6273.178     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      274 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    695.51        .17861E-01** at limit **
   2  alpha         2.0456        2.7871        .20000        .94929E-08
   3  Normalizat    1.0668        .23383E-01    .21077E-03   -.40292E-03
   4  Prefactor     .80404        .25058E-01    .25529E-03   -.22676E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04564
  Normalizat = 1.06677
  Prefactor  = 0.804038
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.178     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.005        .34352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0456        2.8938        .80000E-02   -.18276    
   3  Normalizat    1.0668        .16839        .42154E-04   -.90826    
   4  Prefactor     .80404        .18041        .10212E-04   -.99580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49828e-10
Minuit parameter uncertainties:
  1  3.84303e-05
  2  850.378
  3  0.168478
  4  0.180545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351230': 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) = 6273.17773464
delta logL = 6.07268702879e-07

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  3.843e-05  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.046e+00  8.504e+02  0.000e+00  5.000e+00 ( 1.000e+00)
278         beta:  4.228e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  7.318e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.040e-01  1.805e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.067e+00  1.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.813 -16.887

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/351230/cmap_HighResolution_569808001_570067201_4FGL_J0223.2-1653_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-05', job_status='DONE', photon_flux_upper_limit='4.49e-08', time_completed='2021-08-15 20:04:55.342224', job_id='351230', GAL2='0.80', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1629083095.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.89' WHERE bin_id='1275' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 351230: <4FGL_J0223.2-1653_daily_bin1275> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin1275> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 19:50:37 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:53:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 19:53:22 2021
Terminated at Sun Aug 15 20:04:56 2021
Results reported at Sun Aug 15 20:04:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin1275 35.8128 -16.8868 569808001 570067201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0223.2-1653 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   644.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            859 sec.

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

