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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin1075
RA = 35.8128, Dec = -16.8868
tmin = 517968001, tmax = 518227201
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='350945', job_status='RUN', time_executed='2021-08-15 19:53:34.994555', time_epoch_executed='1629082414.99' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350945

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350945/ft1_4FGL_J0223.2-1653_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350945/ft1_4FGL_J0223.2-1653_daily_bin1075.fits outfile=/scratch/kocevski/350945/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1075.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=517968001.0 tmax=518227201.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.92
user 3.53
sys 1.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.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/350945/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1075.fits evtable="EVENTS" outfile="/scratch/kocevski/350945/ft1_filtered_4FGL_J0223.2-1653_daily_bin1075.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 1.76
user 0.33
sys 1.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350945/ft1_filtered_4FGL_J0223.2-1653_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/350945/ltcube_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.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/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.fits
.....................!
real 15.74
user 13.92
sys 1.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350945/ft1_filtered_4FGL_J0223.2-1653_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/350945/ltcube_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.fits outfile=/scratch/kocevski/350945/expmap_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.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/350945/ltcube_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.fits
.....................!
real 193.50
user 186.20
sys 6.47

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/350945/ft1_filtered_4FGL_J0223.2-1653_daily_bin1075.fits scfile=/scratch/kocevski/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.fits outfile=/scratch/kocevski/350945/cmap_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.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 1.79
user 0.38
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350945/ft1_filtered_4FGL_J0223.2-1653_daily_bin1075.fits scfile=/scratch/kocevski/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.fits outfile=/scratch/kocevski/350945/cmap_HighResolution_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.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 1.72
user 0.38
sys 1.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/350945/ft1_filtered_4FGL_J0223.2-1653_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/350945/Model_4FGL_J0223.2-1653_daily_bin1075.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/350945/ft1_filtered_4FGL_J0223.2-1653_daily_bin1075.fits.....................!
real 44.59
user 40.27
sys 2.84

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/350945/ft1_filtered_4FGL_J0223.2-1653_daily_bin1075.fits', '/scratch/kocevski/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.fits', expMap='/scratch/kocevski/350945/expmap_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.fits', expCube='/scratch/kocevski/350945/ltcube_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/350945/Model_4FGL_J0223.2-1653_daily_bin1075.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/350945/ft1_filtered_4FGL_J0223.2-1653_daily_bin1075.fits
Spacecraft file(s): /scratch/kocevski/350945/ft2_4FGL_J0223.2-1653_daily_bin1075.fits
Exposure map: /scratch/kocevski/350945/expmap_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.fits
Exposure cube: /scratch/kocevski/350945/ltcube_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/350945/Model_4FGL_J0223.2-1653_daily_bin1075.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) = 3976.72382145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    6.5002       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.993       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.000       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1391       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.942       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2111       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7815       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6358       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82846       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .74858       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.

 FCN=   3976.720     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     1998 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.403       -.21446E-05** at limit **
   2  norm          6.5000        2.9940        .28756E-07    .22559E-04
   3  Prefactor     5.5329        4.6886       -.13114E-05   -.18576E-04
   4  Prefactor     .10000E-03    6.0557        .36162E-06** at limit **
   5  Prefactor     56.993        20.978        .97677E-07   -.23201E-04
   6  Prefactor     20.001        9.0403       -.73475E-08   -.22199E-04
   7  Prefactor     .10000E-03    2.4313       -.18270E-06** at limit **
   8  Prefactor     .10000E-03    8.3901        .32424E-06** at limit **
   9  norm          .10000E-03    22.091       -.13321E-04** at limit **
  10  Prefactor     1.1379        1.3318        .50199E-07   -.41892E-03
  11  Prefactor     .10000E-03    28.401        .11180E-04** at limit **
  12  Prefactor     .10000E-03    14.407        .61093E-05** at limit **
  13  Prefactor     34.944        44.864        .15538E-05   -.13012E-05
  14  norm          4.2109        2.6326        .13343E-08    .90156E-06
  15  Prefactor     8.7808        12.121        .17525E-06   -.36280E-04
  16  Prefactor     .10000E-03    59.505       -.83043E-05** at limit **
  17  norm          3.6358        3.7681       -.78047E-06    .17987E-05
  18  Prefactor     .10000E-03    5.4381        .83323E-06** at limit **
  19  Normalizat    .82850        .19860       -.89406E-06   -.10348E-04
  20  Prefactor     .74852        .19115        .10422E-05   -.63658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.50002
  Prefactor  = 5.53292
  Prefactor  = 0.0001
  Prefactor  = 56.9932
  Prefactor  = 20.0013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.13791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.9439
  norm       = 4.2109
  Prefactor  = 8.78079
  Prefactor  = 0.0001
  norm       = 3.63577
  Prefactor  = 0.0001
  Normalizat = 0.828497
  Prefactor  = 0.748517
 **********
 **   18 **HESSE 
 **********

 FCN=   3976.720     FROM HESSE     STATUS=OK           291 CALLS     2289 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5000        3.0031        .69758E-04   -1.5198    
   3  Prefactor     5.5329        4.6974        .11858E-03   -1.5237    
   4  Prefactor     .10000E-03    6.0677        .15153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     56.993        21.008        .53138E-04   -1.4197    
   6  Prefactor     20.001        9.2336        .89560E-04   -1.4813    
   7  Prefactor     .10000E-03    2.4333        .96025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.3926        .17841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    22.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1379        15.204        .21794E-02   -1.5495    
  11  Prefactor     .10000E-03    28.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.944        46.060        .67794E-04   -1.4525    
  14  norm          4.2109        2.6321        .76540E-04   -1.5298    
  15  Prefactor     8.7808        12.190        .67631E-03   -1.5115    
  16  Prefactor     .10000E-03    59.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6358        3.7696        .12103E-03   -1.5327    
  18  Prefactor     .10000E-03    5.4403        .14363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .82850        .23111        .23594E-03   -.99020    
  20  Prefactor     .74852        .22077        .25027E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2527e-10
Minuit parameter uncertainties:
  1  1.33925e-07
  2  3.0032
  3  4.69768
  4  2.58567e-08
  5  21.0106
  6  9.23422
  7  1.31752e-06
  8  2.88419e-06
  9  8.57199e-06
  10  8.32096
  11  8.28168e-06
  12  3.78096e-05
  13  46.1072
  14  2.63212
  15  12.1934
  16  2.16308e-06
  17  3.76982
  18  3.73869e-08
  19  0.231384
  20  0.221026
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  8.572e-06  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:  7.485e-01  2.210e-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:  8.285e-01  2.314e-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: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350945/likelihoodResults_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.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) = 3976.72000999
delta logL = -0.000215084586216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3976.71979953
delta logL = -4.62903290099e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7988       1.0000          .0000       5.0000    
     3 'Normalizat'    .82850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74852       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=   3976.720     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      269 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    886.19        .17081E-01** at limit **
   2  alpha         2.0013        3.9491        .20000        .36096E-08
   3  Normalizat    .82850        .24730E-01    .23594E-03    .34725E-03
   4  Prefactor     .74852        .25196E-01    .25027E-03    .32570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00127
  Normalizat = 0.828497
  Prefactor  = 0.748519
 **********
 **   18 **HESSE 
 **********

 FCN=   3976.720     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    35.509        .34161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0013        2.8248        .80000E-02   -.20084    
   3  Normalizat    .82850        .21506        .47187E-04   -.99020    
   4  Prefactor     .74852        .21909        .50053E-04   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89237e-10
Minuit parameter uncertainties:
  1  7.1652e-05
  2  801.073
  3  0.215286
  4  0.219341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350945': 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) = 3976.71979408
delta logL = 8.23013579065e-07

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  7.165e-05  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.001e+00  8.011e+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:  7.485e-01  2.193e-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:  8.285e-01  2.153e-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/350945/cmap_HighResolution_517968001_518227201_4FGL_J0223.2-1653_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-05', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-08-15 20:02:18.065325', job_id='350945', GAL2='0.75', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629082938.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.89' WHERE bin_id='1075' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:02:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 350945: <4FGL_J0223.2-1653_daily_bin1075> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin1075> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 19:50:20 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:51:43 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:51:43 2021
Terminated at Sun Aug 15 20:02:19 2021
Results reported at Sun Aug 15 20:02:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin1075 35.8128 -16.8868 517968001 518227201 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 :                                   532.50 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            719 sec.

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

