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 86 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 = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0214.4-5822_daily_bin1692
RA = 33.6024, Dec = -58.3698
tmin = 677894401, tmax = 678153601
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='403621', job_status='RUN', time_executed='2022-06-29 04:03:10.497030', time_epoch_executed='1656500590.5' WHERE source_name='4FGL J0214.4-5822' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403621

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403621/ft1_4FGL_J0214.4-5822_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403621/ft1_4FGL_J0214.4-5822_daily_bin1692.fits outfile=/scratch/kocevski/403621/ft1_filteredMKT_4FGL_J0214.4-5822_daily_bin1692.fits ra=33.6024 dec=-58.3698 rad=12.0 tmin=677894401.0 tmax=678153601.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.57
user 4.27
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.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/403621/ft1_filteredMKT_4FGL_J0214.4-5822_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/403621/ft1_filtered_4FGL_J0214.4-5822_daily_bin1692.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.52
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 498

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403621/ft1_filtered_4FGL_J0214.4-5822_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/403621/ltcube_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.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/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits
.....................!
real 15.25
user 14.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403621/ft1_filtered_4FGL_J0214.4-5822_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/403621/ltcube_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.fits outfile=/scratch/kocevski/403621/expmap_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.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/403621/ltcube_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.fits
.....................!
real 193.56
user 188.06
sys 4.91

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
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Added 187 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0214.4-5822 @ 33.6024 -58.3698

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/403621/ft1_filtered_4FGL_J0214.4-5822_daily_bin1692.fits scfile=/scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits outfile=/scratch/kocevski/403621/cmap_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.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.6024 yref=-58.3698 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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/403621/ft1_filtered_4FGL_J0214.4-5822_daily_bin1692.fits scfile=/scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits outfile=/scratch/kocevski/403621/cmap_HighResolution_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.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.6024 yref=-58.3698 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/403621/ft1_filtered_4FGL_J0214.4-5822_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403621/Model_4FGL_J0214.4-5822_daily_bin1692.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
adding source LMC-FarWest
adding source SMC-Galaxy
Working on...
/scratch/kocevski/403621/ft1_filtered_4FGL_J0214.4-5822_daily_bin1692.fits.....................!
real 1798.49
user 1788.57
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/403621/ft1_filtered_4FGL_J0214.4-5822_daily_bin1692.fits', '/scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits', expMap='/scratch/kocevski/403621/expmap_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.fits', expCube='/scratch/kocevski/403621/ltcube_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/403621/Model_4FGL_J0214.4-5822_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0214.4-5822'

4FGL J0214.4-5822
   Spectrum: PowerLaw
268    Prefactor:  2.705e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.188e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.979e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/403621/ft1_filtered_4FGL_J0214.4-5822_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/403621/ft2_4FGL_J0214.4-5822_daily_bin1692.fits
Exposure map: /scratch/kocevski/403621/expmap_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.fits
Exposure cube: /scratch/kocevski/403621/ltcube_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/403621/Model_4FGL_J0214.4-5822_daily_bin1692.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) = 5413.05267892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.125       1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.341       1.0000         .10000E-03   10000.    
     4 'norm      '    26.336       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6309       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0473       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7505       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13696E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8321       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.0312       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.5228       1.0000         .10000E-03   10000.    
    30 'Prefactor '    109.60       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2563       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .50860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5413.023     FROM MIGRAD    STATUS=CONVERGED    908 CALLS     4579 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.125        6.2508        .46186E-07   -.19830E-04
   2  norm          .10000E-03    10.802        .47577E-06** at limit **
   3  Prefactor     47.350        90.065        .18603E-05    .35063E-04
   4  norm          26.335        8.4927        .79310E-08   -.11854E-04
   5  Prefactor     .10000E-03    1.8961        .56498E-08** at limit **
   6  Prefactor     .10000E-03    63.552        .12827E-05** at limit **
   7  norm          .10000E-03    6.0122        .22665E-06** at limit **
   8  Prefactor     .10000E-03    2.1037        .11930E-07** at limit **
   9  Prefactor     4.6310        4.1421        .45000E-06    .48074E-03
  10  Prefactor     .10000E-03    8.7880       -.81783E-06** at limit **
  11  norm          .10000E-03    17.913       -.46820E-06** at limit **
  12  Prefactor     1.5161        3.3116        .46394E-06   -.22113E-03
  13  Prefactor     .10000E-03    7.6121        .87014E-06** at limit **
  14  Prefactor     4.0473        3.9528       -.95668E-07   -.69348E-04
  15  norm          3.7505        1.8768        .23665E-07   -.54180E-06
  16  Prefactor     .10000E-03    228.40       -.12341E-05** at limit **
  17  norm          .10000E-03    5.1042       -.82093E-07** at limit **
  18  norm          .10000E-03    .66392        .44713E-08** at limit **
  19  Prefactor     9.8317        11.257        .13805E-05   -.16767E-03
  20  Prefactor     2.5613        2.9043        .14779E-06   -.55350E-04
  21  Prefactor     .10000E-03    6.8609       -.60639E-06** at limit **
  22  Prefactor     .10000E-03    23.050        .60524E-06** at limit **
  23  Prefactor     .10000E-03    1.2028       -.34228E-08** at limit **
  24  Prefactor     .10000E-03    44.330       -.10527E-05** at limit **
  25  Prefactor     .10000E-03    4.0502       -.36461E-07** at limit **
  26  norm          .10000E-03    1.9862        .30659E-08** at limit **
  27  norm          2.0312        1.0635        .16743E-07   -.31245E-04
  28  Prefactor     .10000E-03    6.2406       -.72887E-08** at limit **
  29  Prefactor     7.5227        6.9169        .10768E-05   -.27055E-03
  30  Prefactor     109.60        55.172       -.20405E-07   -.84047E-05
  31  Prefactor     .10000E-03    2.1479        .87015E-08** at limit **
  32  Normalizat    1.2563        .18489       -.47504E-06    .77244E-05
  33  Prefactor     .50860        .16265       -.16964E-06   -.32763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1253
  norm       = 0.0001
  Prefactor  = 47.3502
  norm       = 26.3354
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.63099
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.51615
  Prefactor  = 0.0001
  Prefactor  = 4.04725
  norm       = 3.75047
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.83172
  Prefactor  = 2.5613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.03119
  Prefactor  = 0.0001
  Prefactor  = 7.52274
  Prefactor  = 109.604
  Prefactor  = 0.0001
  Normalizat = 1.2563
  Prefactor  = 0.508596
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.023     FROM HESSE     STATUS=OK           685 CALLS     5264 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.125        6.2550        .12592E-03   -1.5071    
   2  norm          .10000E-03    11.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.350        90.586        .58277E-04   -1.4331    
   4  norm          26.335        8.5013        .78062E-04   -1.4681    
   5  Prefactor     .10000E-03    1.8975        .98939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.1411        .17627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1122        .10420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6310        4.2719        .14049E-03   -1.5278    
  10  Prefactor     .10000E-03    9.0302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    17.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5161        3.3270        .18759E-03   -1.5462    
  13  Prefactor     .10000E-03    7.8279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0473        3.9595        .13678E-03   -1.5306    
  15  norm          3.7505        1.8769        .65866E-04   -1.5321    
  16  Prefactor     .10000E-03    231.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1096        .16233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .67005        .58517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8317        11.393        .63898E-03   -1.5081    
  20  Prefactor     2.5613        2.8959        .12698E-03   -1.5388    
  21  Prefactor     .10000E-03    6.9371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.2046        .78791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    45.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.0572        .14460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.9916        .10119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.0312        1.0654        .29026E-04   -1.5423    
  28  Prefactor     .10000E-03    6.2412        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.5227        7.0206        .73109E-03   -1.5159    
  30  Prefactor     109.60        55.211        .38419E-04   -1.3610    
  31  Prefactor     .10000E-03    2.1534        .10529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2563        .21991        .21312E-03   -.84881    
  33  Prefactor     .50860        .19177        .29176E-03   -1.1158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69997e-10
Minuit parameter uncertainties:
  1  6.25535
  2  5.32757e-05
  3  90.8505
  4  8.50167
  5  1.96789e-07
  6  0.000384297
  7  1.86046e-05
  8  9.75715e-07
  9  4.27219
  10  8.01667e-05
  11  7.37284e-05
  12  3.32743
  13  8.3918e-05
  14  3.95972
  15  1.87695
  16  0.00054376
  17  4.48024e-06
  18  4.60751e-07
  19  11.395
  20  2.89606
  21  5.93951e-05
  22  0.000110432
  23  8.8234e-08
  24  0.000224138
  25  2.85164e-06
  26  3.04165e-07
  27  1.0654
  28  1.07194e-06
  29  7.02135
  30  55.2366
  31  7.62575e-07
  32  0.220071
  33  0.192015
Done.

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

Extracting fit parameters...

4FGL J0214.4-5822
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  5.438e-04  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.188e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.979e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  5.086e-01  1.920e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.256e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 33.602 -58.370
Photon Flux Upper Limit: 7.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/403621/likelihoodResults_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.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) = 5413.02331944
delta logL = -2.04145644602e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5413.0232991
delta logL = -7.35562935006e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1599       1.0000          .0000       10.000    
     3 'Normalizat'    1.2563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5413.023     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      265 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43455E-03    11.381        .12489    ** at limit **
   2  Index         2.3067        1.7215        .50000       -.46294E-04
   3  Normalizat    1.2563        .18415E-02    .48209E-01    .21503E-03
   4  Prefactor     .50859        .16773E-02    .65921E-01   -.11528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000434546
  Index      = 2.3067
  Normalizat = 1.2563
  Prefactor  = 0.508592
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.023     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      306 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43455E-03    8.5241        .14328       -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3067        1.6782        .50000       -.56885    
   3  Normalizat    1.2563        .17913E-02    .21312E-03   -.84880    
   4  Prefactor     .50859        .16287E-02    .29176E-03   -1.1158    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50835e-09
Minuit parameter uncertainties:
  1  0.106818
  2  1.72609
  3  0.00179133
  4  0.00162872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403621': 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) = 5413.02329858
delta logL = 4.49284925708e-07

Extracting fit parameters...

4FGL J0214.4-5822
   Spectrum: PowerLaw
268    Prefactor:  4.345e-04  1.068e-01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.307e+00  1.726e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  1.979e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  5.086e-01  1.629e-03  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.256e+00  1.791e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 33.602 -58.370

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/403621/cmap_HighResolution_677894401_678153601_4FGL_J0214.4-5822_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.92e-03', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2022-06-29 04:53:05.008751', job_id='403621', GAL2='0.51', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1656503585.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='4.49e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1692' AND source_name='4FGL J0214.4-5822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:53:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 403776: <4FGL_J0214.4-5822_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0214.4-5822_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:15 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:03:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:03:11 2022
Terminated at Wed Jun 29 04:45:47 2022
Results reported at Wed Jun 29 04:45:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0214.4-5822_daily_bin1692 33.6024 -58.3698 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0214.4-5822 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2187.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             442.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2555 sec.
    Turnaround time :                            16832 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 403621: <4FGL_J0214.4-5822_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0214.4-5822_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:03 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:01:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:01:44 2022
Terminated at Wed Jun 29 04:53:05 2022
Results reported at Wed Jun 29 04:53:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0214.4-5822_daily_bin1692 33.6024 -58.3698 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0214.4-5822 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2675.00 sec.
    Max Memory :                                 1098 MB
    Average Memory :                             457.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3081 sec.
    Turnaround time :                            17282 sec.

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

