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


Performing analysis on: 4FGL_J0223.2-1653_daily_bin1505
RA = 35.8128, Dec = -16.8868
tmin = 629424001, tmax = 629683201
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='352777', job_status='RUN', time_executed='2021-08-15 19:59:10.224609', time_epoch_executed='1629082750.22' WHERE source_name='4FGL J0223.2-1653' and cadence='daily' and bin_id='1505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352777/ft1_4FGL_J0223.2-1653_daily_bin1505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352777/ft2_4FGL_J0223.2-1653_daily_bin1505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352777/ft1_4FGL_J0223.2-1653_daily_bin1505.fits outfile=/scratch/kocevski/352777/ft1_filteredMKT_4FGL_J0223.2-1653_daily_bin1505.fits ra=35.8128 dec=-16.8868 rad=12.0 tmin=629424001.0 tmax=629683201.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.72
user 3.32
sys 1.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352777/ft1_filtered_4FGL_J0223.2-1653_daily_bin1505.fits" evtable="EVENTS" scfile=/scratch/kocevski/352777/ft2_4FGL_J0223.2-1653_daily_bin1505.fits sctable="SC_DATA" outfile=/scratch/kocevski/352777/ltcube_629424001_629683201_4FGL_J0223.2-1653_daily_bin1505.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/352777/ft2_4FGL_J0223.2-1653_daily_bin1505.fits
.....................!
real 15.90
user 14.25
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352777/ft1_filtered_4FGL_J0223.2-1653_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/352777/ft2_4FGL_J0223.2-1653_daily_bin1505.fits sctable="SC_DATA" expcube=/scratch/kocevski/352777/ltcube_629424001_629683201_4FGL_J0223.2-1653_daily_bin1505.fits outfile=/scratch/kocevski/352777/expmap_629424001_629683201_4FGL_J0223.2-1653_daily_bin1505.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/352777/ltcube_629424001_629683201_4FGL_J0223.2-1653_daily_bin1505.fits
.....................!
real 194.55
user 187.55
sys 6.54

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/352777/ft1_filtered_4FGL_J0223.2-1653_daily_bin1505.fits scfile=/scratch/kocevski/352777/ft2_4FGL_J0223.2-1653_daily_bin1505.fits outfile=/scratch/kocevski/352777/cmap_629424001_629683201_4FGL_J0223.2-1653_daily_bin1505.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.70
user 0.39
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352777/ft1_filtered_4FGL_J0223.2-1653_daily_bin1505.fits scfile=/scratch/kocevski/352777/ft2_4FGL_J0223.2-1653_daily_bin1505.fits outfile=/scratch/kocevski/352777/cmap_HighResolution_629424001_629683201_4FGL_J0223.2-1653_daily_bin1505.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.39
sys 1.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/352777/ft1_filtered_4FGL_J0223.2-1653_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/352777/ft2_4FGL_J0223.2-1653_daily_bin1505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/352777/Model_4FGL_J0223.2-1653_daily_bin1505.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/352777/ft1_filtered_4FGL_J0223.2-1653_daily_bin1505.fits.....................!
real 59.30
user 55.86
sys 2.80

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11100E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3139       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85728       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4146       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    78.352       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2199       1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.375       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2945       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3949       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2684       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79491       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .72342       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=   5956.686     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2113 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.179       -.69141E-06** at limit **
   2  norm          3.3133        1.9315        .24854E-06   -.11197E-03
   3  Prefactor     .85898        2.7196        .12033E-05   -.57361E-04
   4  Prefactor     3.0956        5.0428        .84146E-07   -.18758E-04
   5  Prefactor     .77315E-01    7.1287        .57227E-06   -.29072E-03
   6  Prefactor     1.4379        3.0902        .39115E-06   -.43905E-04
   7  Prefactor     5.4515        16.421       -.20918E-05   -.36425E-04
   8  Prefactor     .10000E-03    10.856        .58374E-07** at limit **
   9  norm          78.151        92.018       -.35410E-06   -.35918E-04
  10  Prefactor     1.2192        3.7151        .10177E-05   -.25186E-04
  11  Prefactor     46.375        34.121        .11706E-05   -.13176E-04
  12  Prefactor     .10000E-03    3.9586        .23537E-07** at limit **
  13  Prefactor     .10000E-03    5.6258       -.13467E-07** at limit **
  14  norm          6.2937        2.0551        .26603E-07   -.48807E-04
  15  Prefactor     8.3907        7.9622        .21627E-06   -.77801E-05
  16  Prefactor     .10000E-03    26.441        .77391E-07** at limit **
  17  norm          8.3291        4.2424        .99497E-08   -.60016E-05
  18  Prefactor     5.2658        9.0486        .70434E-07   -.60944E-06
  19  Normalizat    .79492        .14351       -.11333E-05   -.77465E-04
  20  Prefactor     .72360        .14778        .97170E-06   -.17474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.31333
  Prefactor  = 0.858981
  Prefactor  = 3.09555
  Prefactor  = 0.0773154
  Prefactor  = 1.43795
  Prefactor  = 5.4515
  Prefactor  = 0.0001
  norm       = 78.1515
  Prefactor  = 1.21916
  Prefactor  = 46.3754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.2937
  Prefactor  = 8.39069
  Prefactor  = 0.0001
  norm       = 8.32914
  Prefactor  = 5.26581
  Normalizat = 0.794922
  Prefactor  = 0.723601
 **********
 **   18 **HESSE 
 **********

 FCN=   5956.686     FROM HESSE     STATUS=OK           309 CALLS     2422 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3133        1.9277        .75933E-04   -1.5344    
   3  Prefactor     .85898        2.7139        .21368E-03   -1.5523    
   4  Prefactor     3.0956        5.0228        .21373E-03   -1.5356    
   5  Prefactor     .77315E-01    13.430        .62368E-01   -1.5652    
   6  Prefactor     1.4379        3.0410        .18736E-03   -1.5468    
   7  Prefactor     5.4515        16.321        .17269E-03   -1.5241    
   8  Prefactor     .10000E-03    10.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          78.151        92.051        .22684E-03   -1.3938    
  10  Prefactor     1.2192        3.6878        .24494E-03   -1.5487    
  11  Prefactor     46.375        34.130        .58878E-04   -1.4345    
  12  Prefactor     .10000E-03    3.9727        .14996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6296        .17879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2937        2.0578        .59439E-04   -1.5206    
  15  Prefactor     8.3907        7.9643        .13836E-03   -1.5129    
  16  Prefactor     .10000E-03    26.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3291        4.2423        .10892E-03   -1.5131    
  18  Prefactor     5.2658        9.0502        .17512E-03   -1.5249    
  19  Normalizat    .79492        .16461        .21008E-03   -1.0026    
  20  Prefactor     .72360        .17005        .23542E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4331e-11
Minuit parameter uncertainties:
  1  1.94049e-06
  2  1.92777
  3  2.71427
  4  5.02344
  5  2.03711
  6  3.04135
  7  16.334
  8  7.01993e-06
  9  92.2197
  10  3.68844
  11  34.144
  12  1.28884e-07
  13  1.82917e-06
  14  2.05782
  15  7.96533
  16  2.02593e-06
  17  4.24248
  18  9.05258
  19  0.164716
  20  0.170177
Done.

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

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  7.815e+01  9.222e+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:  7.236e-01  1.702e-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.949e-01  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.28
Ra Dec: 35.813 -16.887
Photon Index (Fixed Index): 2.89 +/- 0.00
Photon Flux (Fixed Index): 5.33e-08 +/- 6.28e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.74e-05

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

Saving results to:
/scratch/kocevski/352777/likelihoodResults_629424001_629683201_4FGL_J0223.2-1653_daily_bin1505.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) = 5956.55851767
delta logL = 0.12743631609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5956.55333237
delta logL = 0.132621623068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    56.461       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2715       1.0000          .0000       5.0000    
     3 'Normalizat'    .78235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73359       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=   5956.553     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      289 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          56.425        63.904        .53387E-04   -.24702E-04
   2  alpha         3.2706        .83475        .12817E-01   -.11528E-04
   3  Normalizat    .78223        .15736        .21154E-03    .16564E-03
   4  Prefactor     .73385        .16833        .23395E-03   -.17310E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 56.4248
  alpha      = 3.27059
  Normalizat = 0.782233
  Prefactor  = 0.733851
 **********
 **   18 **HESSE 
 **********

 FCN=   5956.553     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          56.425        57.402        .21355E-05   -1.4204    
   2  alpha         3.2706        .75237        .51267E-03    .31334    
   3  Normalizat    .78223        .15717        .84614E-05   -1.0073    
   4  Prefactor     .73385        .16806        .93578E-05   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64479e-10
Minuit parameter uncertainties:
  1  57.458
  2  0.765523
  3  0.157262
  4  0.16818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352777': 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) = 5956.55332678
delta logL = 0.132627208135

Extracting fit parameters...

4FGL J0223.2-1653
   Spectrum: LogParabola
276         norm:  5.642e+01  5.746e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        alpha:  3.271e+00  7.655e-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:  7.339e-01  1.682e-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.822e-01  1.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 35.813 -16.887
Photon Index (Free Index): 3.27 +/- 0.77
Photon Flux (Free Index): 6.20e-08 +/- 4.00e-08
Energy Flux (Free Index): 1.44e-05 +/- 8.94e-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/352777/cmap_HighResolution_629424001_629683201_4FGL_J0223.2-1653_daily_bin1505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-05', comment='SUCCESS', photon_flux='5.33e-08', energy_flux2='1.44e-05', photon_flux_error='6.28e-08', dlogl='1.33e-01', energy_flux='1.47e-05', photon_flux2='6.20e-08', job_status='DONE', time_completed='2021-08-15 20:11:11.503562', photon_index_error2='0.77', photon_index2='3.27', ts='3.28', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='8.94e-06', EG='0.79', time_epoch_completed='1629083471.5', return_code='0', job_id='352777', GAL2='0.73', EG2='0.78', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='4.00e-08', ts2='3.63', photon_index='2.89' WHERE bin_id='1505' AND source_name='4FGL J0223.2-1653' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 352777: <4FGL_J0223.2-1653_daily_bin1505> in cluster <slac> Done

Job <4FGL_J0223.2-1653_daily_bin1505> 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) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:56:58 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:58 2021
Terminated at Sun Aug 15 20:11:12 2021
Results reported at Sun Aug 15 20:11:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0223.2-1653_daily_bin1505 35.8128 -16.8868 629424001 629683201 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 :                                   647.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            923 sec.

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

