aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 38 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 = 17484
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0212.9+2244_weekly_bin717
RA = 33.2427, Dec = 22.7466
tmin = 672624001, tmax = 673228801
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='367571', job_status='RUN', time_executed='2022-05-03 01:04:23.767000', time_epoch_executed='1651565063.77' WHERE source_name='4FGL J0212.9+2244' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367571

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367571/ft1_4FGL_J0212.9+2244_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367571/ft2_4FGL_J0212.9+2244_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367571/ft1_4FGL_J0212.9+2244_weekly_bin717.fits outfile=/scratch/kocevski/367571/ft1_filteredMKT_4FGL_J0212.9+2244_weekly_bin717.fits ra=33.2427 dec=22.7466 rad=12.0 tmin=672624001.0 tmax=673228801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.32
user 6.03
sys 0.27

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

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

Number of photons that the gtmktime cut: 136

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367571/ft1_filtered_4FGL_J0212.9+2244_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367571/ft2_4FGL_J0212.9+2244_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367571/ltcube_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.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/367571/ft2_4FGL_J0212.9+2244_weekly_bin717.fits
.....................!
real 31.80
user 31.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367571/ft1_filtered_4FGL_J0212.9+2244_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367571/ft2_4FGL_J0212.9+2244_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367571/ltcube_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.fits outfile=/scratch/kocevski/367571/expmap_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.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/367571/ltcube_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.fits
.....................!
real 191.19
user 186.53
sys 4.13

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/367571/ft1_filtered_4FGL_J0212.9+2244_weekly_bin717.fits scfile=/scratch/kocevski/367571/ft2_4FGL_J0212.9+2244_weekly_bin717.fits outfile=/scratch/kocevski/367571/cmap_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.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 0.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367571/ft1_filtered_4FGL_J0212.9+2244_weekly_bin717.fits scfile=/scratch/kocevski/367571/ft2_4FGL_J0212.9+2244_weekly_bin717.fits outfile=/scratch/kocevski/367571/cmap_HighResolution_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.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.59
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367571/ft1_filtered_4FGL_J0212.9+2244_weekly_bin717.fits', '/scratch/kocevski/367571/ft2_4FGL_J0212.9+2244_weekly_bin717.fits', expMap='/scratch/kocevski/367571/expmap_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.fits', expCube='/scratch/kocevski/367571/ltcube_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367571/Model_4FGL_J0212.9+2244_weekly_bin717.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/367571/ft1_filtered_4FGL_J0212.9+2244_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367571/ft2_4FGL_J0212.9+2244_weekly_bin717.fits
Exposure map: /scratch/kocevski/367571/expmap_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367571/ltcube_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367571/Model_4FGL_J0212.9+2244_weekly_bin717.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) = 1592.50544556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.280       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.165       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.116       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8694       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    24.944       1.0000         .10000E-03   10000.    
     8 'Prefactor '    526.68       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.476       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12225E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73303E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12528E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .27342E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1734.2       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25625E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    656.38       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97213       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1592.370     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     3935 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.284        1.0301       -.18799E-07    .24520E-03
   2  Prefactor     22.173        1.5156        .19914E-07   -.10020E-02
   3  Prefactor     56.116        1.0014       -.17551E-08    .10425E-03
   4  norm          1.8694        1.1401        .92832E-08    .51810E-03
   5  Prefactor     .10024E-03    17.670        .37080E-05** at limit **
   6  Prefactor     .11850E-03    45.572        .40422E-05** at limit **
   7  norm          24.947        1.0929       -.20268E-07    .48175E-03
   8  Prefactor     526.68        1.0146        .10075E-08   -.89366E-03
   9  Prefactor     35.468        1.2268        .66884E-07    .61657E-03
  10  Prefactor     .10059E-03    9.4894        .15071E-06** at limit **
  11  norm          .10073E-03    11.687        .51176E-06** at limit **
  12  Prefactor     .10558E-03    51.329        .81999E-05** at limit **
  13  Prefactor     .10032E-03    24.224        .15228E-05** at limit **
  14  norm          .11428E-03    51.006        .15566E-05** at limit **
  15  Prefactor     .13305E-03    4.9729       -.15717E-06** at limit **
  16  Prefactor     .10325E-03    34.883        .42594E-05** at limit **
  17  Prefactor     .13135E-03    52.281        .48810E-05** at limit **
  18  Prefactor     .10042E-03    46.084        .22676E-05** at limit **
  19  norm          .10000E-03    8.2841        .21390E-06** at limit **
  20  Prefactor     .12716E-03    53.407        .12855E-05** at limit **
  21  norm          .10005E-03    17.455        .36693E-05** at limit **
  22  Prefactor     .11157E-02    9.9942       -.67226E-06** at limit **
  23  Prefactor     9999.9        9.2158        .77689E-06   -.14700E-02
  24  Prefactor     1734.2        1.4502        .36553E-08   -.93382E-02
  25  Prefactor     .18497E-02    2.2154       -.34666E-06** at limit **
  26  norm          656.38        1.0079       -.67087E-09    .73256E-03
  27  Normalizat    .10000E-01    8.8412       -.54592E-04** at limit **
  28  Prefactor     .97185        .14290        .34994E-05    .33548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.2837
  Prefactor  = 22.1733
  Prefactor  = 56.1159
  norm       = 1.86935
  Prefactor  = 0.000100242
  Prefactor  = 0.000118501
  norm       = 24.9475
  Prefactor  = 526.682
  Prefactor  = 35.4677
  Prefactor  = 0.000100586
  norm       = 0.000100735
  Prefactor  = 0.000105578
  Prefactor  = 0.000100321
  norm       = 0.000114275
  Prefactor  = 0.000133053
  Prefactor  = 0.000103245
  Prefactor  = 0.000131346
  Prefactor  = 0.000100423
  norm       = 0.000100005
  Prefactor  = 0.000127163
  norm       = 0.000100047
  Prefactor  = 0.00111567
  Prefactor  = 9999.86
  Prefactor  = 1734.21
  Prefactor  = 0.00184973
  norm       = 656.382
  Normalizat = 0.01
  Prefactor  = 0.971849
 **********
 **   18 **HESSE 
 **********

 FCN=   1592.370     FROM HESSE     STATUS=OK           561 CALLS     4496 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.284        25.532        .14896E-02   -1.4361    
   2  Prefactor     22.173        60.519        .21270E-02   -1.4766    
   3  Prefactor     56.116        180.69        .13387E-02   -1.4208    
   4  norm          1.8694        1.2142        .71242E-02   -1.5435    
   5  Prefactor     .10024E-03    18.266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11850E-03    182.05        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          24.947        14.207        .20051E-02   -1.4709    
   8  Prefactor     526.68        562.47        .44769E-03   -1.1077    
   9  Prefactor     35.468        16.805        .16821E-02   -1.4516    
  10  Prefactor     .10059E-03    24.145        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10073E-03    22.093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10558E-03    56.095        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10032E-03    29.674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11428E-03    247.44        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13305E-03    513.91        .10477E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10325E-03    40.155        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13135E-03    168.93        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10042E-03    224.83        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12716E-03    257.55        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10005E-03    17.578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11157E-02    1191.7        .99634E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9999.9        9056.8        .97332E-02    1.5634    
  24  Prefactor     1734.2        1075.3        .26412E-03   -.71175    
  25  Prefactor     .18497E-02    6486.1        .99966E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          656.38        688.12        .40380E-03   -1.0526    
  27  Normalizat    .10000E-01    .55720        .32215       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .97185        .21617        .45918E-01   -.93674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03421e-05
Minuit parameter uncertainties:
  1  25.5378
  2  60.6875
  3  182.505
  4  1.2142
  5  0.00420325
  6  0.116426
  7  14.209
  8  568.592
  9  16.8073
  10  0.00752802
  11  0.00806043
  12  0.0354098
  13  0.00617522
  14  0.119362
  15  0.262949
  16  0.0228468
  17  0.145951
  18  0.0195695
  19  0.000665062
  20  0.168006
  21  0.0018123
  22  2.24658
  23  82.1465
  24  1090.28
  25  4.82729
  26  697.297
  27  2.80383e-05
  28  0.216365
Done.

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

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.056e-04  3.541e-02  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:  9.718e-01  2.164e-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  2.804e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 33.243 22.747
Photon Flux Upper Limit: 5.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367571/likelihoodResults_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.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) = 1592.37002198
delta logL = -8.46863545121e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1592.36993752
delta logL = -2.315009624e-07

Fit tolerance = 1e-08

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

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

 FCN=   1592.370     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      285 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.283        .90712E-02** at limit **
   2  Index         2.2952        8.1797        .50000       -.21714E-05
   3  Normalizat    .10000E-01    .18320E-03    .32095    ** at limit **
   4  Prefactor     .97185        .39452E-02    .45914E-01   -.44554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29525
  Normalizat = 0.01
  Prefactor  = 0.971847
 **********
 **   18 **HESSE 
 **********

 FCN=   1592.370     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      324 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    239.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2952        6.0893        .50000       -.57157    
   3  Normalizat    .10000E-01    .44688E-02    .18241       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97185        .11668E-01    .18225E-03   -.93674    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2482e-08
Minuit parameter uncertainties:
  1  8.7454e-06
  2  216.492
  3  3.36688e-07
  4  0.0116678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367571': 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) = 1592.36993709
delta logL = 2.04246362046e-07

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.000e-04  8.745e-06  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.295e+00  2.165e+02  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:  9.718e-01  1.167e-02  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  3.367e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 33.243 22.747

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/367571/cmap_HighResolution_672624001_673228801_4FGL_J0212.9+2244_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-02', job_status='DONE', photon_flux_upper_limit='5.38e-07', time_completed='2022-05-03 01:12:17.428325', job_id='367571', GAL2='0.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651565537.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='717' AND source_name='4FGL J0212.9+2244' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:12:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 367571: <4FGL_J0212.9+2244_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0212.9+2244_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:26 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:03:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:03:36 2022
Terminated at Tue May  3 01:12:18 2022
Results reported at Tue May  3 01:12:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0212.9+2244_weekly_bin717 33.2427 22.7466 672624001 673228801 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 :                                   474.00 sec.
    Max Memory :                                 1142 MB
    Average Memory :                             321.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            712 sec.

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

