/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 97 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 = 7445
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0223.2-1653_daily_bin1503
RA = 35.8128, Dec = -16.8868
tmin = 628905601, tmax = 629164801
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='352775', job_status='RUN', time_executed='2021-08-15 19:59:15.831196', time_epoch_executed='1629082755.83' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352775/ft1_4FGL_J0223.2-1653_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352775/ft2_4FGL_J0223.2-1653_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352775/ft1_4FGL_J0223.2-1653_daily_bin1503.fits outfile=/scratch/kocevski/352775/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1503.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=628905601.0 tmax=629164801.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.86
user 3.32
sys 1.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/352775/ft2_4FGL_J0223.2-1653_daily_bin1503.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/352775/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1503.fits evtable="EVENTS" outfile="/scratch/kocevski/352775/ft1_filtered_4FGL_J0223.2-1653_daily_bin1503.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.84
user 0.36
sys 1.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352775/ft1_filtered_4FGL_J0223.2-1653_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/352775/ft2_4FGL_J0223.2-1653_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/352775/ltcube_628905601_629164801_4FGL_J0223.2-1653_daily_bin1503.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/352775/ft2_4FGL_J0223.2-1653_daily_bin1503.fits
.....................!
real 15.33
user 13.53
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352775/ft1_filtered_4FGL_J0223.2-1653_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/352775/ft2_4FGL_J0223.2-1653_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/352775/ltcube_628905601_629164801_4FGL_J0223.2-1653_daily_bin1503.fits outfile=/scratch/kocevski/352775/expmap_628905601_629164801_4FGL_J0223.2-1653_daily_bin1503.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/352775/ltcube_628905601_629164801_4FGL_J0223.2-1653_daily_bin1503.fits
.....................!
real 193.15
user 185.84
sys 6.66

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/352775/ft1_filtered_4FGL_J0223.2-1653_daily_bin1503.fits scfile=/scratch/kocevski/352775/ft2_4FGL_J0223.2-1653_daily_bin1503.fits outfile=/scratch/kocevski/352775/cmap_628905601_629164801_4FGL_J0223.2-1653_daily_bin1503.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.83
user 0.39
sys 1.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352775/ft1_filtered_4FGL_J0223.2-1653_daily_bin1503.fits scfile=/scratch/kocevski/352775/ft2_4FGL_J0223.2-1653_daily_bin1503.fits outfile=/scratch/kocevski/352775/cmap_HighResolution_628905601_629164801_4FGL_J0223.2-1653_daily_bin1503.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.84
user 0.39
sys 1.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/352775/ft1_filtered_4FGL_J0223.2-1653_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/352775/ft2_4FGL_J0223.2-1653_daily_bin1503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/352775/Model_4FGL_J0223.2-1653_daily_bin1503.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/352775/ft1_filtered_4FGL_J0223.2-1653_daily_bin1503.fits.....................!
real 55.14
user 51.72
sys 3.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.179       1.0000         .10000E-03   10000.    
     2 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46466       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66817E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1154       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1479       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3085       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10681E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.855       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2708       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.289       1.0000         .10000E-03   10000.    
    17 'norm      '    15.141       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83668       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96413       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=   5603.706     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2041 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.189        23.422       -.80044E-06   -.37264E-04
   2  norm          .10000E-03    1.0961       -.98606E-07** at limit **
   3  Prefactor     .46354        2.7627       -.20978E-06   -.15528E-03
   4  Prefactor     .10009E-03    8.7639        .34812E-05** at limit **
   5  Prefactor     2.1187        10.524        .96056E-05    .75065E-04
   6  Prefactor     5.1415        5.0854       -.22471E-06   -.35670E-03
   7  Prefactor     8.3092        8.3030       -.28511E-06   -.71897E-04
   8  Prefactor     .10000E-03    11.939        .24073E-07** at limit **
   9  norm          .10000E-03    40.677       -.87466E-07** at limit **
  10  Prefactor     3.8664        6.4719        .38342E-05    .21907E-04
  11  Prefactor     10.825        35.834        .84308E-05   -.69304E-05
  12  Prefactor     .10000E-03    2.4377        .26668E-07** at limit **
  13  Prefactor     .10000E-03    25.453        .35268E-06** at limit **
  14  norm          2.2711        1.7810        .51992E-06    .87808E-04
  15  Prefactor     4.7498        4.9604        .35357E-06    .26365E-04
  16  Prefactor     39.318        54.999       -.43023E-05   -.66958E-05
  17  norm          15.143        5.3641       -.75271E-07   -.15729E-04
  18  Prefactor     .10000E-03    6.6491        .77853E-06** at limit **
  19  Normalizat    .83653        .16243       -.13694E-05   -.52669E-04
  20  Prefactor     .96418        .16340       -.61656E-06   -.16988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.189
  norm       = 0.0001
  Prefactor  = 0.463537
  Prefactor  = 0.000100088
  Prefactor  = 2.11868
  Prefactor  = 5.14155
  Prefactor  = 8.30922
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.8664
  Prefactor  = 10.8251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27113
  Prefactor  = 4.7498
  Prefactor  = 39.3178
  norm       = 15.1432
  Prefactor  = 0.0001
  Normalizat = 0.836532
  Prefactor  = 0.964179
 **********
 **   18 **HESSE 
 **********

 FCN=   5603.706     FROM HESSE     STATUS=OK           301 CALLS     2342 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.189        23.385        .85052E-04   -1.4766    
   2  norm          .10000E-03    2.0958        .15020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .46354        5.0452        .22955E-02   -1.5572    
   4  Prefactor     .10009E-03    39.972        .39086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1187        10.602        .14180E-02   -1.5417    
   6  Prefactor     5.1415        4.9811        .15454E-03   -1.5254    
   7  Prefactor     8.3092        8.2772        .13908E-03   -1.5131    
   8  Prefactor     .10000E-03    11.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    40.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8664        6.4770        .10261E-02   -1.5315    
  11  Prefactor     10.825        35.852        .12160E-03   -1.5050    
  12  Prefactor     .10000E-03    2.4390        .11414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2711        1.7708        .41703E-03   -1.5407    
  15  Prefactor     4.7498        4.9575        .16470E-03   -1.5272    
  16  Prefactor     39.318        55.025        .63947E-04   -1.4453    
  17  norm          15.143        5.3605        .99128E-04   -1.4929    
  18  Prefactor     .10000E-03    6.6815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .83653        .18637        .22719E-03   -.98728    
  20  Prefactor     .96418        .19087        .23082E-03   -.93933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67271e-08
Minuit parameter uncertainties:
  1  23.3948
  2  5.54546e-06
  3  3.05852
  4  0.00376189
  5  9.4813
  6  4.98146
  7  8.27836
  8  2.50885e-06
  9  0.000209417
  10  6.47815
  11  35.9236
  12  7.0981e-08
  13  3.58521e-05
  14  1.77085
  15  4.95789
  16  55.0958
  17  5.3607
  18  0.000103747
  19  0.186518
  20  0.191006
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.000e-04  2.094e-04  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:  9.642e-01  1.910e-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.365e-01  1.865e-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: 6.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/352775/likelihoodResults_628905601_629164801_4FGL_J0223.2-1653_daily_bin1503.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) = 5603.7065224
delta logL = -0.000117009341011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5603.70640736
delta logL = -1.96583187062e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5182       1.0000          .0000       5.0000    
     3 'Normalizat'    .83653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96418       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=   5603.706     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      290 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    6190.1        .18142E-01** at limit **
   2  alpha         1.7061        3.1867        .18645        .68388E-07
   3  Normalizat    .83653        .15370E-01    .22719E-03    .34330E-02
   4  Prefactor     .96419        .16753E-01    .23082E-03    .34269E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100139
  alpha      = 1.70607
  Normalizat = 0.836535
  Prefactor  = 0.964186
 **********
 **   18 **HESSE 
 **********

 FCN=   5603.706     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      313 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10014E-03    9832.6        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7061        2.7835        .37290E-01   -.32317    
   3  Normalizat    .83653        .74330E-01    .45438E-04   -.98727    
   4  Prefactor     .96419        .81083E-01    .46165E-04   -.93933    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.36045e-09
Minuit parameter uncertainties:
  1  0.130793
  2  12765.5
  3  0.0743392
  4  0.0810934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352775': 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) = 5603.70640446
delta logL = 9.25337189983e-07

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  1.001e-04  1.308e-01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  1.706e+00  1.277e+04  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:  9.642e-01  8.109e-02  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.365e-01  7.434e-02  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/352775/cmap_HighResolution_628905601_629164801_4FGL_J0223.2-1653_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-08-15 20:10:46.495578', job_id='352775', GAL2='0.96', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1629083446.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.89' WHERE bin_id='1503' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:10:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 352775: <4FGL_J0223.2-1653_daily_bin1503> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin1503> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 19:55:49 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:56:56 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:56:56 2021
Terminated at Sun Aug 15 20:10:47 2021
Results reported at Sun Aug 15 20:10:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin1503 35.8128 -16.8868 628905601 629164801 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 :                                   617.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            898 sec.

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

