aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 178 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 = 17175
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0212.9+2244_weekly_bin665
RA = 33.2427, Dec = 22.7466
tmin = 641174401, tmax = 641779201
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='415067', job_status='RUN', time_executed='2021-07-04 11:36:30.794555', time_epoch_executed='1625423790.79' WHERE source_name='4FGL J0212.9+2244' and cadence='weekly' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415067

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415067/ft1_4FGL_J0212.9+2244_weekly_bin665.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415067/ft1_4FGL_J0212.9+2244_weekly_bin665.fits outfile=/scratch/kocevski/415067/ft1_filteredMKT_4FGL_J0212.9+2244_weekly_bin665.fits ra=33.2427 dec=22.7466 rad=12.0 tmin=641174401.0 tmax=641779201.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 5.99
user 5.58
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.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/415067/ft1_filteredMKT_4FGL_J0212.9+2244_weekly_bin665.fits evtable="EVENTS" outfile="/scratch/kocevski/415067/ft1_filtered_4FGL_J0212.9+2244_weekly_bin665.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.75
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415067/ft1_filtered_4FGL_J0212.9+2244_weekly_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/415067/ltcube_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.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/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits
.....................!
real 27.18
user 26.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415067/ft1_filtered_4FGL_J0212.9+2244_weekly_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/415067/ltcube_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.fits outfile=/scratch/kocevski/415067/expmap_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.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/415067/ltcube_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.fits
.....................!
real 193.65
user 186.50
sys 5.55

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

Setting source of interest to:
4FGL J0212.9+2244 @ 33.2427 22.7466

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/415067/ft1_filtered_4FGL_J0212.9+2244_weekly_bin665.fits scfile=/scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits outfile=/scratch/kocevski/415067/cmap_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.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=33.2427 yref=22.7466 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.29
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415067/ft1_filtered_4FGL_J0212.9+2244_weekly_bin665.fits scfile=/scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits outfile=/scratch/kocevski/415067/cmap_HighResolution_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.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=33.2427 yref=22.7466 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.85
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415067/ft1_filtered_4FGL_J0212.9+2244_weekly_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415067/Model_4FGL_J0212.9+2244_weekly_bin665.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/415067/ft1_filtered_4FGL_J0212.9+2244_weekly_bin665.fits.....................!
real 24.98
user 19.31
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/415067/ft1_filtered_4FGL_J0212.9+2244_weekly_bin665.fits', '/scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits', expMap='/scratch/kocevski/415067/expmap_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.fits', expCube='/scratch/kocevski/415067/ltcube_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/415067/Model_4FGL_J0212.9+2244_weekly_bin665.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0212.9+2244'

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.178e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/415067/ft1_filtered_4FGL_J0212.9+2244_weekly_bin665.fits
Spacecraft file(s): /scratch/kocevski/415067/ft2_4FGL_J0212.9+2244_weekly_bin665.fits
Exposure map: /scratch/kocevski/415067/expmap_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.fits
Exposure cube: /scratch/kocevski/415067/ltcube_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/415067/Model_4FGL_J0212.9+2244_weekly_bin665.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) = 468.371914418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2608.3       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     7 'norm      '    10000.       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9999.7       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.402       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2024.0       1.0000         .10000E-03   10000.    
    14 'norm      '    .45047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1640.8       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10460E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    167.14       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41396E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    29.864       1.0000         .10000E-03   10000.    
    26 'norm      '    144.07       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .40888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   467.8002     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     4600 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.502        .62921E-06** at limit **
   2  Prefactor     .10000E-03    187.16        .27467E-06** at limit **
   3  Prefactor     .10000E-03    324.78        .51658E-06** at limit **
   4  norm          .10000E-03    5.9460        .13316E-06** at limit **
   5  Prefactor     2609.2        1758.1       -.18105E-06    .23442E-05
   6  Prefactor    10000.0        8524.6        .70433E-05** at limit **
   7  norm         10000.0        974.78        .86810E-07** at limit **
   8  Prefactor    10000.0        9372.3        .11980E-04** at limit **
   9  Prefactor     29.345        73.858        .78083E-06   -.45873E-05
  10  Prefactor     10000.        1147.2       -.28412E-06** at limit **
  11  norm          .10000E-03    30.813       -.15154E-06** at limit **
  12  Prefactor    10000.0        1231.6       -.29804E-06** at limit **
  13  Prefactor     2024.5        1935.4       -.15024E-04    .10225E-04
  14  norm          .10000E-03    9994.4       -.54981E-07** at limit **
  15  Prefactor     1643.9        5535.2       -.44702E-03    .47944E-05
  16  Prefactor     .10000E-03    75.148        .29039E-07** at limit **
  17  Prefactor     .10209E-03    6395.8        .13509E-03** at limit **
  18  Prefactor     .10000E-03    98.861       -.94411E-06** at limit **
  19  norm          .10000E-03    6.2635        .20827E-06** at limit **
  20  Prefactor     .10000E-03    74.249        .19197E-06** at limit **
  21  norm          .10000E-03    13.685        .10006E-04** at limit **
  22  Prefactor     166.83        302.71        .10893E-05   -.56636E-05
  23  Prefactor     .10001E-03    674.78        .31945E-04** at limit **
  24  Prefactor     .10000E-03    32.358       -.43683E-06** at limit **
  25  Prefactor     30.126        93.520       -.82798E-05   -.24033E-04
  26  norm          143.96        71.798       -.12596E-05    .50336E-04
  27  Normalizat    .10000E-01    .11148        .21893E-05** at limit **
  28  Prefactor     .40877        .17237       -.29549E-05    .56486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2609.16
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 29.3449
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 2024.54
  norm       = 0.0001
  Prefactor  = 1643.88
  Prefactor  = 0.0001
  Prefactor  = 0.000102094
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 166.832
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 30.1261
  norm       = 143.963
  Normalizat = 0.01
  Prefactor  = 0.408771
 **********
 **   18 **HESSE 
 **********

 FCN=   467.8002     FROM HESSE     STATUS=OK           495 CALLS     5095 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.524        .10883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    187.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    324.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.9460        .51536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2609.2        1757.6        .45549E-04   -.49857    
   6  Prefactor    10000.0        8523.7        .19151E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        974.83        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        9373.2        .20468E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.345        74.055        .73888E-04   -1.4624    
  10  Prefactor     10000.        1147.3        .21281E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    30.813        .11736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        1231.7        .21155E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2024.5        1933.9        .49777E-04   -.63738    
  14  norm          .10000E-03    9994.4        .21208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1643.9        5580.8        .54003E-04   -.73586    
  16  Prefactor     .10000E-03    75.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10209E-03    6363.6        .11060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    98.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.2797        .52888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    74.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.673        .80333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     166.83        303.03        .15601E-03   -1.3117    
  23  Prefactor     .10001E-03    676.07        .18456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.370        .12027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     30.126        93.691        .36658E-03   -1.4610    
  26  norm          143.96        71.852        .16784E-03   -1.3302    
  27  Normalizat    .10000E-01    .11181        .22320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .40877        .17273        .16821E-03   -1.1636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72485e-10
Minuit parameter uncertainties:
  1  3.54289e-05
  2  0.000337117
  3  0.000605733
  4  3.65184e-06
  5  1808.23
  6  0.070557
  7  0.00103365
  8  0.228667
  9  74.288
  10  1.26425e-05
  11  1.06468e-05
  12  0.000497008
  13  2017.57
  14  0.00392225
  15  7232.22
  16  1.32713e-05
  17  0.750252
  18  0.0001899
  19  7.65203e-06
  20  6.86565e-05
  21  0.00044182
  22  305.926
  23  0.00424926
  24  0.000118985
  25  94.1534
  26  71.8955
  27  1.12865e-06
  28  0.172954
Done.

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

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.000e+04  4.970e-04  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  4.088e-01  1.730e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.000e-02  1.129e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.06
Ra Dec: 33.243 22.747
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.37e-05 +/- 2.67e-12
Energy Flux (Fixed Index): 3.26e-02 +/- 1.62e-09

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) = 89.0713818861
delta logL = 378.728779297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 89.0528888108
delta logL = 378.747272372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Index     '    10.000       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .21014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   89.05286     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      244 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        196.59         .0000    ** at limit **
   2  Index         10.000        .91605E-02     .0000    ** at limit **
   3  Normalizat    .10000E-01    .85426E-01     .0000    ** at limit **
   4  Prefactor     .21023        .10348         .0000       -.46587E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 10
  Normalizat = 0.01
  Prefactor  = 0.210233
 **********
 **   18 **HESSE 
 **********

 FCN=   89.05286     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        196.34        .13000E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         10.000        .91604E-02    .27975E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .85445E-01    .85542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .21023        .10344        .33344E-03   -1.2798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81186e-08
Minuit parameter uncertainties:
  1  0.0663707
  2  2.88954e-09
  3  9.01555e-09
  4  0.103532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415067': 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) = 89.0528644878
delta logL = 378.747296695

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.000e+04  6.637e-02  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  1.000e+01  2.890e-09  0.000e+00  1.000e+01 (-1.000e+00)
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  2.102e-01  1.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.000e-02  9.016e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 769.73
Ra Dec: 33.243 22.747
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.90e+05 +/- 1.86e+00
Energy Flux (Free Index): 3.24e+07 +/- 2.09e+02

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/415067/cmap_HighResolution_641174401_641779201_4FGL_J0212.9+2244_weekly_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.37e-05', energy_flux2='3.24e+07', photon_flux_error='2.67e-12', dlogl='3.79e+02', energy_flux='3.26e-02', photon_flux2='2.90e+05', job_status='DONE', time_completed='2021-07-04 11:43:22.949951', photon_index_error2='0.00', photon_index2='10.00', ts='9.06', fit_tolerance='1e-08', GAL='0.41', photon_index_error='0.00', energy_flux_error2='2.09e+02', EG='0.01', time_epoch_completed='1625424202.95', return_code='0', job_id='415067', GAL2='0.21', EG2='0.01', return_code2='0', energy_flux_error='1.62e-09', photon_flux_error2='1.86e+00', ts2='769.73', photon_index='2.05' WHERE bin_id='665' AND source_name='4FGL J0212.9+2244' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 11:43:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 415067: <4FGL_J0212.9+2244_weekly_bin665> in cluster <slac> Done

Job <4FGL_J0212.9+2244_weekly_bin665> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul  4 11:31:38 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 11:31:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 11:31:39 2021
Terminated at Sun Jul  4 11:43:25 2021
Results reported at Sun Jul  4 11:43:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0212.9+2244_weekly_bin665 33.2427 22.7466 641174401 641779201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0212.9+2244 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   391.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             161.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

