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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin821
RA = 35.8128, Dec = -16.8868
tmin = 452131201, tmax = 452390401
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='349511', job_status='RUN', time_executed='2021-08-15 19:48:32.474950', time_epoch_executed='1629082112.47' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='821'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349511

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349511/ft1_4FGL_J0223.2-1653_daily_bin821.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349511/ft2_4FGL_J0223.2-1653_daily_bin821.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349511/ft1_4FGL_J0223.2-1653_daily_bin821.fits outfile=/scratch/kocevski/349511/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin821.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=452131201.0 tmax=452390401.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 3.76
user 3.23
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349511/ft2_4FGL_J0223.2-1653_daily_bin821.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/349511/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin821.fits evtable="EVENTS" outfile="/scratch/kocevski/349511/ft1_filtered_4FGL_J0223.2-1653_daily_bin821.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.83
user 0.34
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349511/ft1_filtered_4FGL_J0223.2-1653_daily_bin821.fits" evtable="EVENTS" scfile=/scratch/kocevski/349511/ft2_4FGL_J0223.2-1653_daily_bin821.fits sctable="SC_DATA" outfile=/scratch/kocevski/349511/ltcube_452131201_452390401_4FGL_J0223.2-1653_daily_bin821.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/349511/ft2_4FGL_J0223.2-1653_daily_bin821.fits
.....................!
real 14.99
user 14.21
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349511/ft1_filtered_4FGL_J0223.2-1653_daily_bin821.fits evtable="EVENTS" scfile=/scratch/kocevski/349511/ft2_4FGL_J0223.2-1653_daily_bin821.fits sctable="SC_DATA" expcube=/scratch/kocevski/349511/ltcube_452131201_452390401_4FGL_J0223.2-1653_daily_bin821.fits outfile=/scratch/kocevski/349511/expmap_452131201_452390401_4FGL_J0223.2-1653_daily_bin821.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/349511/ltcube_452131201_452390401_4FGL_J0223.2-1653_daily_bin821.fits
.....................!
real 194.48
user 187.26
sys 6.43

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/349511/ft1_filtered_4FGL_J0223.2-1653_daily_bin821.fits scfile=/scratch/kocevski/349511/ft2_4FGL_J0223.2-1653_daily_bin821.fits outfile=/scratch/kocevski/349511/cmap_452131201_452390401_4FGL_J0223.2-1653_daily_bin821.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 0.84
user 0.36
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349511/ft1_filtered_4FGL_J0223.2-1653_daily_bin821.fits scfile=/scratch/kocevski/349511/ft2_4FGL_J0223.2-1653_daily_bin821.fits outfile=/scratch/kocevski/349511/cmap_HighResolution_452131201_452390401_4FGL_J0223.2-1653_daily_bin821.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 0.84
user 0.39
sys 0.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/349511/ft1_filtered_4FGL_J0223.2-1653_daily_bin821.fits evtable="EVENTS" scfile=/scratch/kocevski/349511/ft2_4FGL_J0223.2-1653_daily_bin821.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/349511/Model_4FGL_J0223.2-1653_daily_bin821.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/349511/ft1_filtered_4FGL_J0223.2-1653_daily_bin821.fits.....................!
real 57.67
user 54.32
sys 1.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.265       1.0000         .10000E-03   10000.    
     2 'norm      '    .91689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.520       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7613       1.0000         .10000E-03   10000.    
     9 'norm      '    72.350       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.432       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.088       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4159       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9654       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10944E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.9038       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68868       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2605       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=   5937.817     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2082 TOTAL
                     EDM=   .64E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.263        32.118       -.12723E-06   -.36648E-05
   2  norm          .91544        1.9452        .60195E-06    .47750E-04
   3  Prefactor     .10000E-03    3.6468        .39486E-06** at limit **
   4  Prefactor     3.0597        11.639        .68793E-06   -.82930E-05
   5  Prefactor     10.519        11.762       -.62517E-07   -.30162E-04
   6  Prefactor     5.1860        4.9852        .45716E-07   -.27287E-04
   7  Prefactor     4.5916        11.993       -.40858E-05   -.50246E-04
   8  Prefactor     1.7571        59.743        .26055E-05   -.37588E-05
   9  norm          72.172        64.331        .44140E-05   -.28574E-04
  10  Prefactor     17.272        7.5163       -.15122E-07   -.11427E-04
  11  Prefactor     61.415        43.367        .45813E-06   -.11691E-04
  12  Prefactor     .10000E-03    8.5504        .20310E-06** at limit **
  13  Prefactor     20.073        36.415        .21080E-07   -.26972E-05
  14  norm          1.4161        1.4006        .42763E-07   -.15178E-05
  15  Prefactor     2.9632        9.3975        .88473E-06   -.98123E-05
  16  Prefactor     .10000E-03    144.80        .85999E-06** at limit **
  17  norm          4.9038        3.6593       -.12033E-07   -.82775E-06
  18  Prefactor     .10000E-03    11.088        .21503E-06** at limit **
  19  Normalizat    .68882        .16892       -.37956E-06   -.55312E-04
  20  Prefactor     1.2604        .17671        .19675E-06   -.74491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2632
  norm       = 0.91544
  Prefactor  = 0.0001
  Prefactor  = 3.0597
  Prefactor  = 10.5186
  Prefactor  = 5.18598
  Prefactor  = 4.59162
  Prefactor  = 1.75713
  norm       = 72.1718
  Prefactor  = 17.2721
  Prefactor  = 61.4146
  Prefactor  = 0.0001
  Prefactor  = 20.0731
  norm       = 1.41605
  Prefactor  = 2.9632
  Prefactor  = 0.0001
  norm       = 4.90379
  Prefactor  = 0.0001
  Normalizat = 0.688819
  Prefactor  = 1.26044
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.817     FROM HESSE     STATUS=OK           299 CALLS     2381 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.263        32.060        .84887E-04   -1.4764    
   2  norm          .91544        1.9133        .14421E-03   -1.5517    
   3  Prefactor     .10000E-03    3.7888        .28643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0597        11.565        .23184E-03   -1.5358    
   5  Prefactor     10.519        11.687        .12353E-03   -1.5059    
   6  Prefactor     5.1860        4.9655        .15704E-03   -1.5252    
   7  Prefactor     4.5916        12.035        .18810E-03   -1.5279    
   8  Prefactor     1.7571        59.394        .31572E-03   -1.5443    
   9  norm          72.172        64.002        .23599E-03   -1.4007    
  10  Prefactor     17.272        7.5084        .96372E-04   -1.4877    
  11  Prefactor     61.415        43.426        .51194E-04   -1.4139    
  12  Prefactor     .10000E-03    8.6830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.073        36.382        .89365E-04   -1.4812    
  14  norm          1.4161        1.3795        .87235E-04   -1.5470    
  15  Prefactor     2.9632        9.3776        .23580E-03   -1.5364    
  16  Prefactor     .10000E-03    145.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9038        3.6581        .12365E-03   -1.5265    
  18  Prefactor     .10000E-03    11.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .68882        .19564        .26940E-03   -1.0434    
  20  Prefactor     1.2604        .20752        .22762E-03   -.84491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23432e-11
Minuit parameter uncertainties:
  1  32.0851
  2  1.91344
  3  6.34911e-06
  4  11.5739
  5  11.6898
  6  4.96592
  7  12.041
  8  20.4532
  9  64.0635
  10  7.50882
  11  43.4481
  12  2.67908e-06
  13  36.4218
  14  1.3795
  15  9.38227
  16  3.03744e-05
  17  3.65825
  18  5.15384e-06
  19  0.195841
  20  0.20766
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  7.217e+01  6.406e+01  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:  1.260e+00  2.077e-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:  6.888e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 35.813 -16.887
Photon Index (Fixed Index): 2.89 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.21e-05

TS (Fixed Index): 3.90
Ra Dec: 35.813 -16.887
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/349511/likelihoodResults_452131201_452390401_4FGL_J0223.2-1653_daily_bin821.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) = 5937.55861374
delta logL = 0.258064297683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5937.55815398
delta logL = 0.258524052968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    97.236       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2345       1.0000          .0000       5.0000    
     3 'Normalizat'    .71017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2457       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=   5937.558     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      296 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          97.058        70.691        .20382E-03   -.33913E-04
   2  alpha         2.2316        .88906        .22526E-01    .72761E-05
   3  Normalizat    .71023        .18471        .26550E-03    .48172E-04
   4  Prefactor     1.2457        .20523        .22879E-03   -.64667E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 97.0581
  alpha      = 2.23155
  Normalizat = 0.710227
  Prefactor  = 1.24575
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.558     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          97.058        70.127        .81528E-05   -1.3734    
   2  alpha         2.2316        .88167        .90105E-03   -.10759    
   3  Normalizat    .71023        .18474        .10620E-04   -1.0349    
   4  Prefactor     1.2457        .20534        .45758E-04   -.84935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95639e-11
Minuit parameter uncertainties:
  1  70.1866
  2  0.901292
  3  0.184898
  4  0.20547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349511': 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) = 5937.55814342
delta logL = 0.258534620444

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  9.706e+01  7.019e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  2.232e+00  9.013e-01  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:  1.246e+00  2.055e-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:  7.102e-01  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 35.813 -16.887
Photon Index (Free Index): 2.23 +/- 0.90
Photon Flux (Free Index): 3.27e-08 +/- 3.21e-08
Energy Flux (Free Index): 1.38e-05 +/- 9.80e-06

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/349511/cmap_HighResolution_452131201_452390401_4FGL_J0223.2-1653_daily_bin821.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='1.38e-05', photon_flux_error='4.36e-08', dlogl='2.59e-01', energy_flux='1.36e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-08-15 19:58:46.875249', photon_index_error2='0.90', photon_index2='2.23', ts='3.90', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='9.80e-06', EG='0.69', time_epoch_completed='1629082726.88', return_code='0', job_id='349511', GAL2='1.25', EG2='0.71', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.21e-08', ts2='4.48', photon_index='2.89' WHERE bin_id='821' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:58:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 349511: <4FGL_J0223.2-1653_daily_bin821> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin821> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 19:45:27 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:48:19 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:48:19 2021
Terminated at Sun Aug 15 19:58:47 2021
Results reported at Sun Aug 15 19:58:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin821 35.8128 -16.8868 452131201 452390401 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 :                                   614.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            800 sec.

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

