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


Performing analysis on: 4FGL_J0224.2+0700_weekly_bin507
RA = 36.0577, Dec = 7.0126
tmin = 545616001, tmax = 546220801
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='496779', job_status='RUN', time_executed='2021-07-04 15:59:07.675601', time_epoch_executed='1625439547.68' WHERE source_name='4FGL J0224.2+0700' and cadence='weekly' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496779

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496779/ft1_4FGL_J0224.2+0700_weekly_bin507.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496779/ft1_4FGL_J0224.2+0700_weekly_bin507.fits outfile=/scratch/kocevski/496779/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin507.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=545616001.0 tmax=546220801.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 9.19
user 8.33
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.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/496779/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin507.fits evtable="EVENTS" outfile="/scratch/kocevski/496779/ft1_filtered_4FGL_J0224.2+0700_weekly_bin507.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.39
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496779/ft1_filtered_4FGL_J0224.2+0700_weekly_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/496779/ltcube_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.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/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits
.....................!
real 27.61
user 26.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496779/ft1_filtered_4FGL_J0224.2+0700_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/496779/ltcube_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.fits outfile=/scratch/kocevski/496779/expmap_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.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/496779/ltcube_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.fits
.....................!
real 200.82
user 185.94
sys 4.67

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

Setting source of interest to:
4FGL J0224.2+0700 @ 36.0577 7.0126

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/496779/ft1_filtered_4FGL_J0224.2+0700_weekly_bin507.fits scfile=/scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits outfile=/scratch/kocevski/496779/cmap_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.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=36.0577 yref=7.0126 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.11
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496779/ft1_filtered_4FGL_J0224.2+0700_weekly_bin507.fits scfile=/scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits outfile=/scratch/kocevski/496779/cmap_HighResolution_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.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=36.0577 yref=7.0126 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.60
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496779/ft1_filtered_4FGL_J0224.2+0700_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496779/Model_4FGL_J0224.2+0700_weekly_bin507.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/496779/ft1_filtered_4FGL_J0224.2+0700_weekly_bin507.fits.....................!
real 57.10
user 40.59
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496779/ft1_filtered_4FGL_J0224.2+0700_weekly_bin507.fits', '/scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits', expMap='/scratch/kocevski/496779/expmap_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.fits', expCube='/scratch/kocevski/496779/ltcube_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496779/Model_4FGL_J0224.2+0700_weekly_bin507.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0224.2+0700'

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  3.952e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/496779/ft1_filtered_4FGL_J0224.2+0700_weekly_bin507.fits
Spacecraft file(s): /scratch/kocevski/496779/ft2_4FGL_J0224.2+0700_weekly_bin507.fits
Exposure map: /scratch/kocevski/496779/expmap_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.fits
Exposure cube: /scratch/kocevski/496779/ltcube_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496779/Model_4FGL_J0224.2+0700_weekly_bin507.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) = 2844.94653606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.218       1.0000         .10000E-03   10000.    
     5 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .63641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1239.8       1.0000         .10000E-03   10000.    
    10 'Prefactor '    69.324       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.280       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4996       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.874       1.0000         .10000E-03   10000.    
    19 'norm      '    21.838       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    67.512       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    15.629       1.0000         .10000E-03   10000.    
    25 'norm      '    19.634       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .12526       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2844.924     FROM MIGRAD    STATUS=CONVERGED   1254 CALLS     4826 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.262        .18142E-02** at limit **
   2  norm          .10000E-03    32.827        .18142E-02** at limit **
   3  Prefactor     .10000E-03    16.654        .18142E-02** at limit **
   4  Prefactor     20.222        27.090        .89076E-04    .26164E-05
   5  norm          .10000E-03    6.9268        .13710E-02** at limit **
   6  Prefactor     .10004E-03    15.200        .24993E-02** at limit **
   7  norm          .63673        1.1272        .72621E-03   -.11158E-03
   8  Prefactor     .10000E-03    27.884        .18142E-02** at limit **
   9  Prefactor     1239.7        1071.4        .60688E-04    .48706E-06
  10  Prefactor     69.336        55.145        .48210E-04   -.24360E-04
  11  Prefactor     .10000E-03    68.068        .18142E-02** at limit **
  12  Prefactor     .10000E-03    23.717        .18142E-02** at limit **
  13  Prefactor     38.287        40.899        .64780E-04    .24587E-04
  14  Prefactor     .10000E-03    6.5925        .13376E-02** at limit **
  15  Prefactor     .10000E-03    81.470        .18142E-02** at limit **
  16  norm          3.4978        3.3197        .91419E-04   -.94450E-04
  17  Prefactor     .10000E-03    55.731        .18142E-02** at limit **
  18  Prefactor     19.876        33.537        .89845E-04    .55613E-04
  19  norm          21.838        34.874        .85713E-04    .12600E-04
  20  Prefactor     .10000E-03    96.236        .18142E-02** at limit **
  21  Prefactor     .10000E-03    51.077        .18142E-02** at limit **
  22  Prefactor     67.473        75.304        .48849E-04    .51597E-04
  23  Prefactor     .10000E-03    3.1020        .91617E-03** at limit **
  24  norm          15.628        18.198        .10131E-03    .35124E-04
  25  norm          19.635        9.4607        .90390E-04    .12030E-03
  26  Prefactor     .10000E-03    8.4692        .29785E-03** at limit **
  27  norm          .10000E-03    5.1710        .11845E-02** at limit **
  28  Normalizat    .12539        .32051        .79912E-02    .19928E-03
  29  Prefactor     1.3425        .22149        .17801E-03    .10738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2218
  norm       = 0.0001
  Prefactor  = 0.000100043
  norm       = 0.636726
  Prefactor  = 0.0001
  Prefactor  = 1239.68
  Prefactor  = 69.3362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49781
  Prefactor  = 0.0001
  Prefactor  = 19.8755
  norm       = 21.838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.4734
  Prefactor  = 0.0001
  norm       = 15.6276
  norm       = 19.6348
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.125394
  Prefactor  = 1.3425
 **********
 **   18 **HESSE 
 **********

 FCN=   2844.924     FROM HESSE     STATUS=OK           527 CALLS     5353 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    32.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.222        27.091        .35630E-05   -1.4808    
   5  norm          .10000E-03    6.9269        .27420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    15.321        .49986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .63673        1.1245        .29048E-04   -1.5548    
   8  Prefactor     .10000E-03    27.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1239.7        1071.3        .12138E-04   -.85119    
  10  Prefactor     69.336        55.144        .96421E-05   -1.4041    
  11  Prefactor     .10000E-03    68.068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.287        40.897        .12956E-04   -1.4470    
  14  Prefactor     .10000E-03    6.5925        .26751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    81.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4978        3.3193        .36568E-05   -1.5334    
  17  Prefactor     .10000E-03    55.731        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.876        33.466        .35938E-05   -1.4816    
  19  norm          21.838        34.859        .34285E-05   -1.4773    
  20  Prefactor     .10000E-03    96.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     67.473        75.184        .97697E-05   -1.4063    
  23  Prefactor     .10000E-03    3.1021        .18323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          15.628        18.192        .40524E-05   -1.4917    
  25  norm          19.635        9.4583        .36156E-05   -1.4821    
  26  Prefactor     .10000E-03    8.4695        .59570E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.1710        .23690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .12539        .31183        .15982E-02   -1.3554    
  29  Prefactor     1.3425        .21646        .35602E-04   -.82052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97518e-09
Minuit parameter uncertainties:
  1  8.0756e-05
  2  1.4505e-05
  3  1.84134e-05
  4  27.1079
  5  2.16348e-05
  6  0.00162309
  7  1.12451
  8  6.98071e-05
  9  1091.18
  10  55.1843
  11  0.00011204
  12  0.000125371
  13  40.9274
  14  1.25085e-05
  15  0.000230426
  16  3.31949
  17  4.55476e-05
  18  33.4977
  19  34.891
  20  2.83252e-05
  21  4.60739e-05
  22  75.2898
  23  7.25163e-06
  24  18.1989
  25  9.45899
  26  6.6186e-05
  27  6.14229e-06
  28  0.316449
  29  0.216611
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  6.981e-05  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.343e+00  2.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.254e-01  3.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 2.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496779/likelihoodResults_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.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) = 2844.92368535
delta logL = -0.000170345791958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2844.92351688
delta logL = -1.87144723895e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2844.924     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      285 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10734E-03    19.070        .18142E-01** at limit **
   2  Index         2.8168        5.7637        .50000        .13975E-04
   3  Normalizat    .12540        .73737E-02    .79905E-02    .15782E-04
   4  Prefactor     1.3425        .50530E-02    .17801E-03   -.98352E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010734
  Index      = 2.81683
  Normalizat = 0.125397
  Prefactor  = 1.3425
 **********
 **   18 **HESSE 
 **********

 FCN=   2844.924     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      316 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10734E-03    162.80        .23466E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8168        8.3623        .50000       -.45185    
   3  Normalizat    .12540        .21732E-01    .31962E-03   -1.3554    
   4  Prefactor     1.3425        .14892E-01    .71204E-05   -.82052    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.1203e-09
Minuit parameter uncertainties:
  1  0.069323
  2  529.84
  3  0.0217334
  4  0.0148921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496779': 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) = 2844.92351586
delta logL = -8.4781595433e-07

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.073e-04  6.932e-02  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.817e+00  5.298e+02  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.342e+00  1.489e-02  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.254e-01  2.173e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.058 7.013

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/496779/cmap_HighResolution_545616001_546220801_4FGL_J0224.2+0700_weekly_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-02', job_status='DONE', photon_flux_upper_limit='2.28e-07', time_completed='2021-07-04 16:10:33.513765', job_id='496779', GAL2='1.34', fit_tolerance='1e-08', EG2='0.13', EG='0.13', time_epoch_completed='1625440233.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='-8.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='507' AND source_name='4FGL J0224.2+0700' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 16:10:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 496779: <4FGL_J0224.2+0700_weekly_bin507> in cluster <slac> Done

Job <4FGL_J0224.2+0700_weekly_bin507> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul  4 15:54:26 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 15:54:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 15:54:28 2021
Terminated at Sun Jul  4 16:10:40 2021
Results reported at Sun Jul  4 16:10:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_weekly_bin507 36.0577 7.0126 545616001 546220801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.2+0700 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             210.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            974 sec.

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

