/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 3 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 = 7680
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0222.0-1616_daily_bin441
RA = 35.5197, Dec = -16.2787
tmin = 353635201, tmax = 353894401
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='330746', job_status='RUN', time_executed='2021-08-15 18:50:45.631096', time_epoch_executed='1629078645.63' WHERE source_name='4FGL J0222.0-1616' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330746

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330746/ft1_4FGL_J0222.0-1616_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330746/ft2_4FGL_J0222.0-1616_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330746/ft1_4FGL_J0222.0-1616_daily_bin441.fits outfile=/scratch/kocevski/330746/ft1_filteredMKT_4FGL_J0222.0-1616_daily_bin441.fits ra=35.5197 dec=-16.2787 rad=12.0 tmin=353635201.0 tmax=353894401.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 12.51
user 3.33
sys 8.96

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330746/ft2_4FGL_J0222.0-1616_daily_bin441.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/330746/ft1_filteredMKT_4FGL_J0222.0-1616_daily_bin441.fits evtable="EVENTS" outfile="/scratch/kocevski/330746/ft1_filtered_4FGL_J0222.0-1616_daily_bin441.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 9.44
user 0.34
sys 8.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330746/ft1_filtered_4FGL_J0222.0-1616_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/330746/ft2_4FGL_J0222.0-1616_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/330746/ltcube_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.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/330746/ft2_4FGL_J0222.0-1616_daily_bin441.fits
.....................!
real 28.13
user 17.63
sys 10.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330746/ft1_filtered_4FGL_J0222.0-1616_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/330746/ft2_4FGL_J0222.0-1616_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/330746/ltcube_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.fits outfile=/scratch/kocevski/330746/expmap_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.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/330746/ltcube_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.fits
.....................!
real 207.65
user 185.49
sys 16.53

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/330746/ft1_filtered_4FGL_J0222.0-1616_daily_bin441.fits scfile=/scratch/kocevski/330746/ft2_4FGL_J0222.0-1616_daily_bin441.fits outfile=/scratch/kocevski/330746/cmap_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.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 9.30
user 0.41
sys 8.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330746/ft1_filtered_4FGL_J0222.0-1616_daily_bin441.fits scfile=/scratch/kocevski/330746/ft2_4FGL_J0222.0-1616_daily_bin441.fits outfile=/scratch/kocevski/330746/cmap_HighResolution_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.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 9.28
user 0.38
sys 8.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330746/ft1_filtered_4FGL_J0222.0-1616_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/330746/ft2_4FGL_J0222.0-1616_daily_bin441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330746/Model_4FGL_J0222.0-1616_daily_bin441.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/330746/ft1_filtered_4FGL_J0222.0-1616_daily_bin441.fits.....................!
real 60.36
user 46.70
sys 12.63

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/330746/ft1_filtered_4FGL_J0222.0-1616_daily_bin441.fits', '/scratch/kocevski/330746/ft2_4FGL_J0222.0-1616_daily_bin441.fits', expMap='/scratch/kocevski/330746/expmap_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.fits', expCube='/scratch/kocevski/330746/ltcube_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/330746/Model_4FGL_J0222.0-1616_daily_bin441.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/330746/ft1_filtered_4FGL_J0222.0-1616_daily_bin441.fits
Spacecraft file(s): /scratch/kocevski/330746/ft2_4FGL_J0222.0-1616_daily_bin441.fits
Exposure map: /scratch/kocevski/330746/expmap_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.fits
Exposure cube: /scratch/kocevski/330746/ltcube_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/330746/Model_4FGL_J0222.0-1616_daily_bin441.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) = 4708.17387076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.261       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1525       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5437       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10471E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.459       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.541       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6282       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6163       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4689       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1092       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .68265       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=   4708.143     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2230 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .64168       -.27991E-06** at limit **
   2  Prefactor     .10000E-03    14.579       -.47929E-06** at limit **
   3  norm          11.261        4.0436        .38653E-06    .88470E-04
   4  Prefactor     9.3112        8.1580       -.61872E-06    .11444E-04
   5  Prefactor     9.1536        11.536        .27639E-06    .25225E-05
   6  Prefactor     1.5093        62.657        .82073E-06   -.63771E-04
   7  Prefactor     .10000E-03    4.4128        .39443E-06** at limit **
   8  Prefactor     .10000E-03    9.6925       -.77047E-06** at limit **
   9  Prefactor     .10000E-03    12.848       -.10161E-05** at limit **
  10  norm          .10000E-03    85.688        .11760E-05** at limit **
  11  Prefactor     1.5323        3.3175        .78817E-07   -.47376E-03
  12  Prefactor     81.444        59.566       -.12252E-04    .63583E-05
  13  Prefactor     20.544        14.954       -.26026E-06    .79926E-05
  14  Prefactor     .10000E-03    45.456        .25344E-06** at limit **
  15  Prefactor     8.6292        12.835       -.48418E-07    .49824E-05
  16  norm          6.6166        2.5433       -.10011E-06    .42429E-04
  17  Prefactor     3.4682        8.6677       -.44724E-06   -.14822E-03
  18  Prefactor     .10000E-03    18.142       -.40669E-06** at limit **
  19  Prefactor     .10000E-03    4.2442        .40209E-06** at limit **
  20  Normalizat    1.1090        .20147        .20432E-05   -.12869E-04
  21  Prefactor     .68290        .18544        .48037E-06    .63181E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2605
  Prefactor  = 9.31115
  Prefactor  = 9.15361
  Prefactor  = 1.50926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 1.53235
  Prefactor  = 81.444
  Prefactor  = 20.5438
  Prefactor  = 0.0001
  Prefactor  = 8.62919
  norm       = 6.61655
  Prefactor  = 3.46816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10897
  Prefactor  = 0.682898
 **********
 **   18 **HESSE 
 **********

 FCN=   4708.143     FROM HESSE     STATUS=OK           317 CALLS     2547 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .64872        .53697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.261        4.0939        .75536E-04   -1.5037    
   4  Prefactor     9.3112        8.0395        .13141E-03   -1.5098    
   5  Prefactor     9.1536        11.552        .13248E-03   -1.5103    
   6  Prefactor     1.5093        73.219        .17153E-02   -1.5462    
   7  Prefactor     .10000E-03    4.4717        .14065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.7127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    86.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5323        8.2820        .17247E-02   -1.5460    
  12  Prefactor     81.444        59.673        .44501E-04   -1.3901    
  13  Prefactor     20.544        14.954        .88373E-04   -1.4801    
  14  Prefactor     .10000E-03    45.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.6292        12.853        .13647E-03   -1.5120    
  16  norm          6.6166        2.5531        .64901E-04   -1.5193    
  17  Prefactor     3.4682        9.1220        .10856E-02   -1.5335    
  18  Prefactor     .10000E-03    18.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.2457        .13805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1090        .24050        .22855E-03   -.89464    
  21  Prefactor     .68290        .21328        .28086E-03   -1.0420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12059e-10
Minuit parameter uncertainties:
  1  1.5224e-06
  2  5.53259e-06
  3  4.09402
  4  8.04041
  5  11.5552
  6  21.051
  7  7.06237e-06
  8  8.31691e-05
  9  8.35286e-06
  10  0.000774934
  11  7.12616
  12  59.7165
  13  14.9571
  14  8.24527e-05
  15  12.8574
  16  2.55317
  17  9.1257
  18  3.43904e-06
  19  1.73444e-06
  20  0.240742
  21  0.213534
Done.

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

Extracting fit parameters...

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  8.317e-05  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.829e-01  2.135e-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:  1.109e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.520 -16.279
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330746/likelihoodResults_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.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) = 4708.14330283
delta logL = -0.000490623667247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4708.1428124
delta logL = -1.88653757505e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4093       1.0000          .0000       10.000    
     3 'Normalizat'    1.1089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68298       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=   4708.143     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7201        .90712E-02** at limit **
   2  Index         2.4140        6.0016        .50000       -.42132E-05
   3  Normalizat    1.1090        .42609E-02    .37649E-01    .14305E-03
   4  Prefactor     .68290        .42252E-02    .63486E-01    .11023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41403
  Normalizat = 1.10897
  Prefactor  = 0.682897
 **********
 **   18 **HESSE 
 **********

 FCN=   4708.143     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4140        6.0348        .50000       -.54357    
   3  Normalizat    1.1090        .13586E-01    .22855E-03   -.89464    
   4  Prefactor     .68290        .13453E-01    .28086E-03   -1.0420    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.75781e-08
Minuit parameter uncertainties:
  1  0.000154012
  2  274.872
  3  0.0135856
  4  0.0134531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330746': 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) = 4708.1428122
delta logL = 9.66610969044e-09

Extracting fit parameters...

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.540e-04  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.414e+00  2.749e+02  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.829e-01  1.345e-02  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:  1.109e+00  1.359e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.520 -16.279

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/330746/cmap_HighResolution_353635201_353894401_4FGL_J0222.0-1616_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-08-15 19:02:29.474855', job_id='330746', GAL2='0.68', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629079349.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='9.67e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='441' AND source_name='4FGL J0222.0-1616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:02:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 330746: <4FGL_J0222.0-1616_daily_bin441> in cluster <slac> Done

Job <4FGL_J0222.0-1616_daily_bin441> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 18:45:59 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 18:48:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 18:48:12 2021
Terminated at Sun Aug 15 19:02:31 2021
Results reported at Sun Aug 15 19:02:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.0-1616_daily_bin441 35.5197 -16.2787 353635201 353894401 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 :                                   822.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             257.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            992 sec.

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

