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


Performing analysis on: 4FGL_J0633.4-2222_daily_bin1490
RA = 98.3696, Dec = -22.3724
tmin = 625536001, tmax = 625795201
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='505606', job_status='RUN', time_executed='2021-08-25 09:01:20.781706', time_epoch_executed='1629907280.78' WHERE source_name='4FGL J0633.4-2222' and cadence='daily' and bin_id='1490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505606

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505606/ft1_4FGL_J0633.4-2222_daily_bin1490.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505606/ft1_4FGL_J0633.4-2222_daily_bin1490.fits outfile=/scratch/kocevski/505606/ft1_filteredMKT_4FGL_J0633.4-2222_daily_bin1490.fits ra=98.3696 dec=-22.3724 rad=12.0 tmin=625536001.0 tmax=625795201.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 2.88
user 2.60
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.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/505606/ft1_filteredMKT_4FGL_J0633.4-2222_daily_bin1490.fits evtable="EVENTS" outfile="/scratch/kocevski/505606/ft1_filtered_4FGL_J0633.4-2222_daily_bin1490.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.45
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505606/ft1_filtered_4FGL_J0633.4-2222_daily_bin1490.fits" evtable="EVENTS" scfile=/scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits sctable="SC_DATA" outfile=/scratch/kocevski/505606/ltcube_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.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/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits
.....................!
real 9.16
user 8.82
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505606/ft1_filtered_4FGL_J0633.4-2222_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits sctable="SC_DATA" expcube=/scratch/kocevski/505606/ltcube_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.fits outfile=/scratch/kocevski/505606/expmap_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.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/505606/ltcube_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.fits
.....................!
real 144.43
user 140.83
sys 3.30

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

Setting source of interest to:
4FGL J0633.4-2222 @ 98.3696 -22.3724

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/505606/ft1_filtered_4FGL_J0633.4-2222_daily_bin1490.fits scfile=/scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits outfile=/scratch/kocevski/505606/cmap_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.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=98.3696 yref=-22.3724 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.50
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505606/ft1_filtered_4FGL_J0633.4-2222_daily_bin1490.fits scfile=/scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits outfile=/scratch/kocevski/505606/cmap_HighResolution_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.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=98.3696 yref=-22.3724 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505606/ft1_filtered_4FGL_J0633.4-2222_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505606/Model_4FGL_J0633.4-2222_daily_bin1490.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/505606/ft1_filtered_4FGL_J0633.4-2222_daily_bin1490.fits.....................!
real 145.55
user 144.23
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/505606/ft1_filtered_4FGL_J0633.4-2222_daily_bin1490.fits', '/scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits', expMap='/scratch/kocevski/505606/expmap_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.fits', expCube='/scratch/kocevski/505606/ltcube_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/505606/Model_4FGL_J0633.4-2222_daily_bin1490.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0633.4-2222'

4FGL J0633.4-2222
   Spectrum: LogParabola
281         norm:  2.205e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        alpha:  2.392e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
283         beta:  2.897e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
284           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/505606/ft1_filtered_4FGL_J0633.4-2222_daily_bin1490.fits
Spacecraft file(s): /scratch/kocevski/505606/ft2_4FGL_J0633.4-2222_daily_bin1490.fits
Exposure map: /scratch/kocevski/505606/expmap_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.fits
Exposure cube: /scratch/kocevski/505606/ltcube_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/505606/Model_4FGL_J0633.4-2222_daily_bin1490.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) = 13606.8304475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8568       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2555       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10968E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.093       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.347       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.491       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .93568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.285       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .70713       1.0000         .10000E-03   10000.    
    18 'norm      '    17.114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1489       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9178       1.0000         .10000E-03   10000.    
    24 'norm      '    7.6074       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.5446       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97744       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13606.82     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3699 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.587        .29731E-06** at limit **
   2  norm          3.8565        4.8907       -.15508E-06    .53611E-04
   3  Prefactor     .10000E-03    2.8852       -.15833E-06** at limit **
   4  Prefactor     2.2546        8.9178       -.33811E-05   -.83430E-04
   5  Prefactor     .10000E-03    95.377        .60880E-05** at limit **
   6  Prefactor     17.083        17.272        .65008E-06    .78800E-04
   7  Prefactor     40.331        36.807       -.13388E-04    .47629E-04
   8  Prefactor     .10000E-03    21.653       -.78813E-07** at limit **
   9  Prefactor     36.490        33.617       -.94524E-06    .28909E-04
  10  Prefactor     .10000E-03    15.088        .10293E-05** at limit **
  11  norm          .93484        1.5205        .11482E-05   -.40645E-02
  12  Prefactor     .10000E-03    15.876       -.54452E-05** at limit **
  13  Prefactor     .10000E-03    4.1124       -.30028E-06** at limit **
  14  Prefactor     .10000E-03    10.448       -.10836E-05** at limit **
  15  norm          14.284        16.336       -.37719E-07    .11278E-04
  16  norm          .10000E-03    5.0441       -.24729E-06** at limit **
  17  norm          .70776        1.3709       -.29231E-06   -.26237E-03
  18  norm          17.118        11.251       -.89858E-06    .97566E-04
  19  Prefactor     .10000E-03    5.2199        .34695E-06** at limit **
  20  norm          .10000E-03    3.8649        .37699E-07** at limit **
  21  norm          .10000E-03    4.9649       -.60313E-06** at limit **
  22  Prefactor     4.1487        8.3628        .73671E-06    .45337E-04
  23  Prefactor     3.9189        3.5145       -.68734E-06   -.22265E-02
  24  norm          7.5432        94.890       -.16019E-03   -.91276E-06
  25  norm          .10000E-03    14.641        .44214E-05** at limit **
  26  norm          2.5456        3.1404       -.27945E-06   -.15460E-03
  27  Prefactor     .10000E-03    5.8581        .34649E-06** at limit **
  28  Normalizat    .97781        .21352        .99897E-05    .81213E-04
  29  Prefactor     1.1240        .55262E-01    .24717E-07    .45766E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.85647
  Prefactor  = 0.0001
  Prefactor  = 2.25457
  Prefactor  = 0.0001
  Prefactor  = 17.0834
  Prefactor  = 40.3315
  Prefactor  = 0.0001
  Prefactor  = 36.49
  Prefactor  = 0.0001
  norm       = 0.934841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2844
  norm       = 0.0001
  norm       = 0.707758
  norm       = 17.1181
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.14874
  Prefactor  = 3.91885
  norm       = 7.54317
  norm       = 0.0001
  norm       = 2.54558
  Prefactor  = 0.0001
  Normalizat = 0.977809
  Prefactor  = 1.124
 **********
 **   18 **HESSE 
 **********

 FCN=   13606.82     FROM HESSE     STATUS=OK           557 CALLS     4256 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8565        4.8872        .10274E-02   -1.5315    
   3  Prefactor     .10000E-03    2.9059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2546        8.8915        .27356E-03   -1.5408    
   5  Prefactor     .10000E-03    95.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.083        17.239        .96875E-04   -1.4881    
   7  Prefactor     40.331        37.445        .63105E-04   -1.4437    
   8  Prefactor     .10000E-03    21.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.490        33.637        .66344E-04   -1.4499    
  10  Prefactor     .10000E-03    15.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .93484        3.5357        .66789E-01   -1.5515    
  12  Prefactor     .10000E-03    16.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.284        16.337        .10597E-03   -1.4952    
  16  norm          .10000E-03    5.2118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .70776        1.1885        .17970E-02   -1.5540    
  18  norm          17.118        11.095        .96816E-04   -1.4880    
  19  Prefactor     .10000E-03    5.3333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.8700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.0397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.1487        8.3487        .19788E-03   -1.5301    
  23  Prefactor     3.9189        3.5778        .98875E-03   -1.5312    
  24  norm          7.5432        95.455        .14540E-03   -1.5159    
  25  norm          .10000E-03    14.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.5456        3.1393        .21929E-03   -1.5389    
  27  Prefactor     .10000E-03    5.8633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97781        .22625        .54708E-03   -.93778    
  29  Prefactor     1.1240        .58270E-01    .14088E-03   -.88703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98537e-08
Minuit parameter uncertainties:
  1  5.74944e-06
  2  4.88768
  3  2.69025e-05
  4  8.89671
  5  0.000353456
  6  17.2443
  7  37.4666
  8  1.1487e-05
  9  33.6547
  10  3.90836e-05
  11  3.5365
  12  6.93264e-05
  13  1.68048e-05
  14  9.47033e-06
  15  16.3424
  16  3.53773e-05
  17  1.18855
  18  11.0966
  19  2.76792e-05
  20  5.69386e-05
  21  3.72041e-06
  22  8.35108
  23  3.57802
  24  53.7727
  25  9.18447e-05
  26  3.13948
  27  5.76973e-06
  28  0.22647
  29  0.0582731
Done.

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

Extracting fit parameters...

4FGL J0633.4-2222
   Spectrum: LogParabola
281         norm:  1.712e+01  1.110e+01  1.000e-04  1.000e+04 ( 1.000e-12)
282        alpha:  2.392e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
283         beta:  2.897e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
284           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.124e+00  5.827e-02  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  9.778e-01  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.26
Ra Dec: 98.370 -22.372
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.53e-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) = 13606.7415941
delta logL = 0.0762200264926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13606.7295217
delta logL = 0.0882924201596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.497       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7011       1.0000          .0000       5.0000    
     3 'Normalizat'    .96182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13606.73     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      214 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.497        186.66        .25435E-02    .99826E-03
   2  alpha         2.7011        3.5849        .41321        .82023E-04
   3  Normalizat    .96182        .14254        .12415        .11062E-03
   4  Prefactor     1.1254        .26393E-01    .36693E-01   -.18818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.4972
  alpha      = 2.70114
  Normalizat = 0.961824
  Prefactor  = 1.1254
 **********
 **   18 **HESSE 
 **********

 FCN=   13606.73     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.497        11.566        .10174E-03   -1.4920    
   2  alpha         2.7011        .75919        .22009E-01    .80542E-01
   3  Normalizat    .96182        .20602        .55094E-03   -.94321    
   4  Prefactor     1.1254        .55500E-01    .14079E-03   -.88659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82839e-09
Minuit parameter uncertainties:
  1  11.568
  2  0.771453
  3  0.206192
  4  0.0555026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505606': 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) = 13606.7295217
delta logL = 0.0882924203343

Extracting fit parameters...

4FGL J0633.4-2222
   Spectrum: LogParabola
281         norm:  1.550e+01  1.157e+01  1.000e-04  1.000e+04 ( 1.000e-12)
282        alpha:  2.701e+00  7.715e-01  0.000e+00  5.000e+00 ( 1.000e+00)
283         beta:  2.897e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
284           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.125e+00  5.550e-02  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  9.618e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 98.370 -22.372
Photon Index (Free Index): 2.70 +/- 0.77
Photon Flux (Free Index): 8.89e-08 +/- 6.64e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/505606/cmap_HighResolution_625536001_625795201_4FGL_J0633.4-2222_daily_bin1490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='2.43e-05', photon_flux_error='4.55e-08', dlogl='8.83e-02', energy_flux='2.36e-05', photon_flux2='8.89e-08', job_status='DONE', time_completed='2021-08-25 09:16:12.210246', photon_index_error2='0.77', photon_index2='2.70', ts='4.26', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='0.98', time_epoch_completed='1629908172.21', return_code='0', job_id='505606', GAL2='1.13', EG2='0.96', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='6.64e-08', ts2='4.47', photon_index='2.39' WHERE bin_id='1490' AND source_name='4FGL J0633.4-2222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 09:16:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 505606: <4FGL_J0633.4-2222_daily_bin1490> in cluster <slac> Done

Job <4FGL_J0633.4-2222_daily_bin1490> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Aug 25 09:00:27 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 09:00:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 25 09:00:29 2021
Terminated at Wed Aug 25 09:16:12 2021
Results reported at Wed Aug 25 09:16:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0633.4-2222_daily_bin1490 98.3696 -22.3724 625536001 625795201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0633.4-2222 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   887.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

