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


Performing analysis on: 4FGL_J0222.0-1616_daily_bin1366
RA = 35.5197, Dec = -16.2787
tmin = 593395201, tmax = 593654401
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='335633', job_status='RUN', time_executed='2021-08-15 19:03:58.805865', time_epoch_executed='1629079438.81' WHERE source_name='4FGL J0222.0-1616' and cadence='daily' and bin_id='1366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335633

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335633/ft1_4FGL_J0222.0-1616_daily_bin1366.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335633/ft2_4FGL_J0222.0-1616_daily_bin1366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335633/ft1_4FGL_J0222.0-1616_daily_bin1366.fits outfile=/scratch/kocevski/335633/ft1_filteredMKT_4FGL_J0222.0-1616_daily_bin1366.fits ra=35.5197 dec=-16.2787 rad=12.0 tmin=593395201.0 tmax=593654401.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.73
user 3.87
sys 0.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335633/ft2_4FGL_J0222.0-1616_daily_bin1366.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/335633/ft1_filteredMKT_4FGL_J0222.0-1616_daily_bin1366.fits evtable="EVENTS" outfile="/scratch/kocevski/335633/ft1_filtered_4FGL_J0222.0-1616_daily_bin1366.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.13
user 0.33
sys 0.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335633/ft1_filtered_4FGL_J0222.0-1616_daily_bin1366.fits" evtable="EVENTS" scfile=/scratch/kocevski/335633/ft2_4FGL_J0222.0-1616_daily_bin1366.fits sctable="SC_DATA" outfile=/scratch/kocevski/335633/ltcube_593395201_593654401_4FGL_J0222.0-1616_daily_bin1366.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/335633/ft2_4FGL_J0222.0-1616_daily_bin1366.fits
.....................!
real 13.61
user 12.56
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335633/ft1_filtered_4FGL_J0222.0-1616_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/335633/ft2_4FGL_J0222.0-1616_daily_bin1366.fits sctable="SC_DATA" expcube=/scratch/kocevski/335633/ltcube_593395201_593654401_4FGL_J0222.0-1616_daily_bin1366.fits outfile=/scratch/kocevski/335633/expmap_593395201_593654401_4FGL_J0222.0-1616_daily_bin1366.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/335633/ltcube_593395201_593654401_4FGL_J0222.0-1616_daily_bin1366.fits
.....................!
real 192.88
user 186.77
sys 5.60

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/335633/ft1_filtered_4FGL_J0222.0-1616_daily_bin1366.fits scfile=/scratch/kocevski/335633/ft2_4FGL_J0222.0-1616_daily_bin1366.fits outfile=/scratch/kocevski/335633/cmap_593395201_593654401_4FGL_J0222.0-1616_daily_bin1366.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 1.18
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335633/ft1_filtered_4FGL_J0222.0-1616_daily_bin1366.fits scfile=/scratch/kocevski/335633/ft2_4FGL_J0222.0-1616_daily_bin1366.fits outfile=/scratch/kocevski/335633/cmap_HighResolution_593395201_593654401_4FGL_J0222.0-1616_daily_bin1366.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 1.30
user 0.38
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335633/ft1_filtered_4FGL_J0222.0-1616_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/335633/ft2_4FGL_J0222.0-1616_daily_bin1366.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335633/Model_4FGL_J0222.0-1616_daily_bin1366.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/335633/ft1_filtered_4FGL_J0222.0-1616_daily_bin1366.fits.....................!
real 58.82
user 56.26
sys 2.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60364       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.3153       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.538       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5705       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.139       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    69.983       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22209       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8770       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0519       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.903       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .59103E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2346       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.875       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78722       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95848       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=   6295.792     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2246 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60353        1.0403        .91935E-06    .31119E-04
   2  Prefactor     .10000E-03    28.134       -.35845E-06** at limit **
   3  norm          5.3152        1.9585       -.81309E-07   -.98308E-04
   4  Prefactor     .10000E-03    1.7519        .21267E-06** at limit **
   5  Prefactor     .10000E-03    9.0445        .12499E-05** at limit **
   6  Prefactor     13.537        11.946       -.11387E-06   -.20735E-04
   7  Prefactor     9.5709        5.2803        .82087E-07    .22239E-04
   8  Prefactor     17.138        9.9714       -.10269E-05   -.47789E-04
   9  Prefactor     .10000E-03    8.1795       -.57902E-06** at limit **
  10  norm          69.953        50.731        .40756E-05    .12216E-04
  11  Prefactor     .20977        2.9325        .54293E-08    .83564E-04
  12  Prefactor     2.8748        119.33        .77273E-05    .26152E-05
  13  Prefactor     9.0513        12.326        .84072E-07   -.13148E-04
  14  Prefactor     15.906        19.994       -.42846E-06    .10351E-04
  15  Prefactor     .66001E-01    115.38        .11979E-05   -.95664E-06
  16  norm          3.2347        1.8610       -.49953E-07   -.88238E-04
  17  Prefactor     .10000E-03    5.8245        .69918E-06** at limit **
  18  Prefactor     13.870        48.691        .18539E-05   -.35723E-05
  19  Prefactor     .10000E-03    5.4381        .45578E-06** at limit **
  20  Normalizat    .78721        .15192       -.35478E-07   -.63906E-04
  21  Prefactor     .95849        .15710       -.82002E-06    .16585E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.603532
  Prefactor  = 0.0001
  norm       = 5.31524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5367
  Prefactor  = 9.5709
  Prefactor  = 17.138
  Prefactor  = 0.0001
  norm       = 69.9533
  Prefactor  = 0.209773
  Prefactor  = 2.8748
  Prefactor  = 9.05132
  Prefactor  = 15.9055
  Prefactor  = 0.0660009
  norm       = 3.23468
  Prefactor  = 0.0001
  Prefactor  = 13.8698
  Prefactor  = 0.0001
  Normalizat = 0.787212
  Prefactor  = 0.958493
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.792     FROM HESSE     STATUS=OK           337 CALLS     2583 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60353        1.0364        .11221E-02   -1.5553    
   2  Prefactor     .10000E-03    28.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3152        1.9633        .63932E-04   -1.5247    
   4  Prefactor     .10000E-03    1.8092        .20500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.537        11.952        .10886E-03   -1.4972    
   7  Prefactor     9.5709        5.2875        .12623E-03   -1.5089    
   8  Prefactor     17.138        9.9799        .96744E-04   -1.4880    
   9  Prefactor     .10000E-03    8.1892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          69.953        50.626        .23992E-03   -1.4033    
  11  Prefactor     .20977        33.629        .24889E-02   -1.5616    
  12  Prefactor     2.8748        117.98        .23963E-03   -1.5369    
  13  Prefactor     9.0513        12.332        .13322E-03   -1.5106    
  14  Prefactor     15.906        20.020        .10043E-03   -1.4910    
  15  Prefactor     .66001E-01    5.9607        .63854E-01   -1.5657    
  16  norm          3.2347        1.8598        .78212E-04   -1.5348    
  17  Prefactor     .10000E-03    5.9056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.870        48.708        .10753E-03   -1.4963    
  19  Prefactor     .10000E-03    5.4482        .18069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .78721        .17688        .23310E-03   -1.0054    
  21  Prefactor     .95849        .18193        .23225E-03   -.94126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07225e-10
Minuit parameter uncertainties:
  1  1.03647
  2  1.22514e-05
  3  1.9633
  4  9.61045e-07
  5  5.70786e-07
  6  11.9543
  7  5.28778
  8  9.98085
  9  1.42998e-06
  10  50.6574
  11  5.3138
  12  36.9113
  13  12.3359
  14  20.0286
  15  1.25363
  16  1.8598
  17  6.64431e-07
  18  48.848
  19  3.50796e-06
  20  0.177013
  21  0.182043
Done.

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

Extracting fit parameters...

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  1.714e+01  9.981e+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:  9.585e-01  1.820e-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:  7.872e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.78
Ra Dec: 35.520 -16.279
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.27e-05

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) = 6295.26412097
delta logL = 0.527978056243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6295.26367765
delta logL = 0.528421372143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.222       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9841       1.0000          .0000       10.000    
     3 'Normalizat'    .80879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94349       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6295.264     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      310 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.227        15.082        .78230E-04    .54787E-04
   2  Index         1.9840        .39331        .56240E-02    .26131E-03
   3  Normalizat    .80872        .16605        .23044E-03    .42280E-04
   4  Prefactor     .94355        .18060        .23382E-03   -.52121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2272
  Index      = 1.98401
  Normalizat = 0.808719
  Prefactor  = 0.943548
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.264     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.227        14.923        .31292E-05   -1.4683    
   2  Index         1.9840        .38904        .11248E-02   -.64750    
   3  Normalizat    .80872        .16615        .92175E-05   -.99746    
   4  Prefactor     .94355        .18074        .93530E-05   -.94636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72966e-11
Minuit parameter uncertainties:
  1  14.9247
  2  0.389658
  3  0.166258
  4  0.180858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335633': 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) = 6295.26367749
delta logL = 0.528421537993

Extracting fit parameters...

4FGL J0222.0-1616
   Spectrum: PowerLaw
273    Prefactor:  2.623e+01  1.492e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.984e+00  3.897e-01  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:  9.435e-01  1.809e-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:  8.087e-01  1.663e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.95
Ra Dec: 35.520 -16.279
Photon Index (Free Index): 1.98 +/- 0.39
Photon Flux (Free Index): 4.85e-08 +/- 3.30e-08
Energy Flux (Free Index): 3.49e-05 +/- 2.67e-05

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/335633/cmap_HighResolution_593395201_593654401_4FGL_J0222.0-1616_daily_bin1366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='3.49e-05', photon_flux_error='3.90e-08', dlogl='5.28e-01', energy_flux='2.18e-05', photon_flux2='4.85e-08', job_status='DONE', time_completed='2021-08-15 19:14:04.864791', photon_index_error2='0.39', photon_index2='1.98', ts='7.78', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.67e-05', EG='0.79', time_epoch_completed='1629080044.86', return_code='0', job_id='335633', GAL2='0.94', EG2='0.81', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='3.30e-08', ts2='8.95', photon_index='2.40' WHERE bin_id='1366' AND source_name='4FGL J0222.0-1616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:14:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 335633: <4FGL_J0222.0-1616_daily_bin1366> in cluster <slac> Done

Job <4FGL_J0222.0-1616_daily_bin1366> 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) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:03:32 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:32 2021
Terminated at Sun Aug 15 19:14:05 2021
Results reported at Sun Aug 15 19:14:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.0-1616_daily_bin1366 35.5197 -16.2787 593395201 593654401 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 :                                   610.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            787 sec.

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

