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


Performing analysis on: 4FGL_J0222.0-1616_daily_bin1363
RA = 35.5197, Dec = -16.2787
tmin = 592617601, tmax = 592876801
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='335630', job_status='RUN', time_executed='2021-08-15 19:05:05.322509', time_epoch_executed='1629079505.32' WHERE source_name='4FGL J0222.0-1616' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335630

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335630/ft1_4FGL_J0222.0-1616_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335630/ft1_4FGL_J0222.0-1616_daily_bin1363.fits outfile=/scratch/kocevski/335630/ft1_filteredMKT_4FGL_J0222.0-1616_daily_bin1363.fits ra=35.5197 dec=-16.2787 rad=12.0 tmin=592617601.0 tmax=592876801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.95
user 3.29
sys 3.56

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.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/335630/ft1_filteredMKT_4FGL_J0222.0-1616_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/335630/ft1_filtered_4FGL_J0222.0-1616_daily_bin1363.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 3.83
user 0.35
sys 3.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335630/ft1_filtered_4FGL_J0222.0-1616_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/335630/ltcube_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.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/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits
.....................!
real 19.15
user 14.20
sys 4.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335630/ft1_filtered_4FGL_J0222.0-1616_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/335630/ltcube_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.fits outfile=/scratch/kocevski/335630/expmap_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.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/335630/ltcube_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.fits
.....................!
real 196.89
user 186.63
sys 9.46

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

Setting source of interest to:
4FGL J0222.0-1616 @ 35.5197 -16.2787

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/335630/ft1_filtered_4FGL_J0222.0-1616_daily_bin1363.fits scfile=/scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits outfile=/scratch/kocevski/335630/cmap_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.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.5197 yref=-16.2787 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 3.82
user 0.38
sys 3.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335630/ft1_filtered_4FGL_J0222.0-1616_daily_bin1363.fits scfile=/scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits outfile=/scratch/kocevski/335630/cmap_HighResolution_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.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.5197 yref=-16.2787 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 3.81
user 0.40
sys 3.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335630/ft1_filtered_4FGL_J0222.0-1616_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335630/Model_4FGL_J0222.0-1616_daily_bin1363.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/335630/ft1_filtered_4FGL_J0222.0-1616_daily_bin1363.fits.....................!
real 55.81
user 49.80
sys 5.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335630/ft1_filtered_4FGL_J0222.0-1616_daily_bin1363.fits', '/scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits', expMap='/scratch/kocevski/335630/expmap_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.fits', expCube='/scratch/kocevski/335630/ltcube_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335630/Model_4FGL_J0222.0-1616_daily_bin1363.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.0-1616'

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  2.143e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/335630/ft1_filtered_4FGL_J0222.0-1616_daily_bin1363.fits
Spacecraft file(s): /scratch/kocevski/335630/ft2_4FGL_J0222.0-1616_daily_bin1363.fits
Exposure map: /scratch/kocevski/335630/expmap_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.fits
Exposure cube: /scratch/kocevski/335630/ltcube_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335630/Model_4FGL_J0222.0-1616_daily_bin1363.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) = 5477.49814137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4621       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.049       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9411       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4639       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2261       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5036       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9632       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.479       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.620       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57880E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2727       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7955       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6740       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95153       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .64451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5477.485     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2263 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4619        1.7919        .58240E-09   -.63039E-06
   2  Prefactor     31.047        31.038       -.93713E-06   -.90798E-04
   3  norm          2.9410        1.9665        .44851E-07   -.12822E-03
   4  Prefactor     1.4630        3.6566        .27595E-06   -.32050E-03
   5  Prefactor     8.2257        7.9056        .49338E-06    .17151E-03
   6  Prefactor     6.5031        10.795       -.48957E-06   -.11300E-03
   7  Prefactor     3.9629        4.3746        .21302E-06   -.92534E-04
   8  Prefactor     7.0183        6.4448        .91727E-06   -.93040E-03
   9  Prefactor     .10000E-03    6.7385        .26228E-07** at limit **
  10  norm          .10000E-03    57.368       -.19976E-06** at limit **
  11  Prefactor     .10000E-03    2.8534        .31358E-07** at limit **
  12  Prefactor     38.457        38.465       -.61262E-05   -.45699E-03
  13  Prefactor     11.621        10.425        .24737E-06    .76897E-04
  14  Prefactor     .10000E-03    9.3576       -.39522E-08** at limit **
  15  Prefactor     .10001E-03    9.5132       -.29681E-07** at limit **
  16  norm          1.2724        1.4378        .62483E-07   -.26809E-03
  17  Prefactor     1.7943        6.5360        .23647E-05   -.13088E-04
  18  Prefactor     .10000E-03    34.878       -.38117E-06** at limit **
  19  Prefactor     4.6728        8.0944        .17446E-05   -.11397E-02
  20  Normalizat    .95163        .15161        .18659E-06   -.75682E-04
  21  Prefactor     .64450        .15215       -.48079E-06   -.16724E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.46193
  Prefactor  = 31.0466
  norm       = 2.94103
  Prefactor  = 1.463
  Prefactor  = 8.22567
  Prefactor  = 6.50314
  Prefactor  = 3.96294
  Prefactor  = 7.01828
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.4567
  Prefactor  = 11.6206
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 1.27243
  Prefactor  = 1.79433
  Prefactor  = 0.0001
  Prefactor  = 4.67279
  Normalizat = 0.951628
  Prefactor  = 0.644501
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.485     FROM HESSE     STATUS=OK           331 CALLS     2594 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4619        1.7961        .60712E-04   -1.5285    
   2  Prefactor     31.047        31.146        .71907E-04   -1.4593    
   3  norm          2.9410        1.9670        .79546E-04   -1.5365    
   4  Prefactor     1.4630        3.6609        .20905E-03   -1.5466    
   5  Prefactor     8.2257        7.9091        .13978E-03   -1.5134    
   6  Prefactor     6.5031        10.779        .15737E-03   -1.5198    
   7  Prefactor     3.9629        4.3815        .15278E-03   -1.5310    
   8  Prefactor     7.0183        6.5796        .75693E-03   -1.5178    
   9  Prefactor     .10000E-03    6.7429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    57.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9281        .24404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.457        40.345        .64613E-04   -1.4467    
  13  Prefactor     11.621        10.425        .11752E-03   -1.5026    
  14  Prefactor     .10000E-03    9.3771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    15.097        .67980E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2724        1.4221        .89948E-04   -1.5482    
  17  Prefactor     1.7943        6.5307        .31206E-03   -1.5440    
  18  Prefactor     .10000E-03    34.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6728        10.455        .93072E-03   -1.5276    
  20  Normalizat    .95163        .17855        .19972E-03   -.94669    
  21  Prefactor     .64450        .17804        .25083E-03   -1.0574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52202e-09
Minuit parameter uncertainties:
  1  1.79614
  2  31.1621
  3  1.96708
  4  3.66141
  5  7.91014
  6  10.7818
  7  4.38188
  8  6.58024
  9  3.69959e-06
  10  0.000285094
  11  4.52564e-09
  12  40.3735
  13  10.4263
  14  1.37349e-06
  15  0.000841224
  16  1.42215
  17  6.53326
  18  5.49995e-05
  19  10.4589
  20  0.178663
  21  0.178193
Done.

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

Extracting fit parameters...

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  7.018e+00  6.580e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  6.445e-01  1.782e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  9.516e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.23
Ra Dec: 35.520 -16.279
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 8.94e-06 +/- 8.38e-06

TS (Fixed Index): 2.23
Ra Dec: 35.520 -16.279
Photon Flux Upper Limit: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335630/likelihoodResults_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.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) = 5477.38672236
delta logL = 0.0984372515986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5477.3798289
delta logL = 0.105330703701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3212       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8019       1.0000          .0000       10.000    
     3 'Normalizat'    .93988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5477.380     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      243 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3198        96.013        .48447E-02    .23766E-03
   2  Index         2.8021        3.7044        .11618        .12984E-03
   3  Normalizat    .93989        .60762E-01    .45409E-01    .23254E-04
   4  Prefactor     .65213        .54520E-01    .41761E-01    .42368E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31981
  Index      = 2.80208
  Normalizat = 0.939885
  Prefactor  = 0.652127
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.380     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3198        8.5286        .12421E-03   -1.5292    
   2  Index         2.8021        1.1019        .61125E-02   -.45514    
   3  Normalizat    .93989        .16832        .20076E-03   -.95072    
   4  Prefactor     .65213        .17488        .24944E-03   -1.0543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97857e-11
Minuit parameter uncertainties:
  1  8.53097
  2  1.11329
  3  0.168418
  4  0.175031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335630': 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) = 5477.37982887
delta logL = 0.10533073533

Extracting fit parameters...

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  4.320e+00  8.531e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.802e+00  1.113e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  6.521e-01  1.750e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  9.399e-01  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 35.520 -16.279
Photon Index (Free Index): 2.80 +/- 1.11
Photon Flux (Free Index): 3.74e-08 +/- 3.70e-08
Energy Flux (Free Index): 8.35e-06 +/- 7.29e-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/335630/cmap_HighResolution_592617601_592876801_4FGL_J0222.0-1616_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='8.35e-06', photon_flux_error='2.57e-08', dlogl='1.05e-01', energy_flux='8.94e-06', photon_flux2='3.74e-08', job_status='DONE', time_completed='2021-08-15 19:16:06.318940', photon_index_error2='1.11', photon_index2='2.80', ts='2.23', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='8.84e-08', energy_flux_error2='7.29e-06', EG='0.95', time_epoch_completed='1629080166.32', return_code='0', job_id='335630', GAL2='0.65', EG2='0.94', return_code2='0', energy_flux_error='8.38e-06', photon_flux_error2='3.70e-08', ts2='2.44', photon_index='2.40' WHERE bin_id='1363' AND source_name='4FGL J0222.0-1616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:16:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 335630: <4FGL_J0222.0-1616_daily_bin1363> in cluster <slac> Done

Job <4FGL_J0222.0-1616_daily_bin1363> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 19:00:58 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:03:30 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:03:30 2021
Terminated at Sun Aug 15 19:16:07 2021
Results reported at Sun Aug 15 19:16:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.0-1616_daily_bin1363 35.5197 -16.2787 592617601 592876801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0222.0-1616 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   701.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            909 sec.

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

