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


Performing analysis on: 4FGL_J0218.9+3643_weekly_bin484
RA = 34.7473, Dec = 36.7176
tmin = 531705601, tmax = 532310401
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='457252', job_status='RUN', time_executed='2021-07-04 18:32:58.683866', time_epoch_executed='1625448778.68' WHERE source_name='4FGL J0218.9+3643' and cadence='weekly' and bin_id='484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457252

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457252/ft1_4FGL_J0218.9+3643_weekly_bin484.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457252/ft1_4FGL_J0218.9+3643_weekly_bin484.fits outfile=/scratch/kocevski/457252/ft1_filteredMKT_4FGL_J0218.9+3643_weekly_bin484.fits ra=34.7473 dec=36.7176 rad=12.0 tmin=531705601.0 tmax=532310401.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 10.89
user 7.73
sys 0.39

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.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/457252/ft1_filteredMKT_4FGL_J0218.9+3643_weekly_bin484.fits evtable="EVENTS" outfile="/scratch/kocevski/457252/ft1_filtered_4FGL_J0218.9+3643_weekly_bin484.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 2.38
user 0.38
sys 0.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/457252/ft1_filtered_4FGL_J0218.9+3643_weekly_bin484.fits" evtable="EVENTS" scfile=/scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits sctable="SC_DATA" outfile=/scratch/kocevski/457252/ltcube_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.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/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits
.....................!
real 29.28
user 25.85
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457252/ft1_filtered_4FGL_J0218.9+3643_weekly_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits sctable="SC_DATA" expcube=/scratch/kocevski/457252/ltcube_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.fits outfile=/scratch/kocevski/457252/expmap_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.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/457252/ltcube_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.fits
.....................!
real 200.15
user 185.85
sys 4.96

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

Setting source of interest to:
4FGL J0218.9+3643 @ 34.7473 36.7176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/457252/ft1_filtered_4FGL_J0218.9+3643_weekly_bin484.fits scfile=/scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits outfile=/scratch/kocevski/457252/cmap_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.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=34.7473 yref=36.7176 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.16
user 0.41
sys 0.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457252/ft1_filtered_4FGL_J0218.9+3643_weekly_bin484.fits scfile=/scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits outfile=/scratch/kocevski/457252/cmap_HighResolution_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.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=34.7473 yref=36.7176 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.90
user 0.43
sys 0.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/457252/ft1_filtered_4FGL_J0218.9+3643_weekly_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/457252/Model_4FGL_J0218.9+3643_weekly_bin484.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/457252/ft1_filtered_4FGL_J0218.9+3643_weekly_bin484.fits.....................!
real 246.79
user 240.36
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/457252/ft1_filtered_4FGL_J0218.9+3643_weekly_bin484.fits', '/scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits', expMap='/scratch/kocevski/457252/expmap_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.fits', expCube='/scratch/kocevski/457252/ltcube_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/457252/Model_4FGL_J0218.9+3643_weekly_bin484.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0218.9+3643'

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  1.139e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.474e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/457252/ft1_filtered_4FGL_J0218.9+3643_weekly_bin484.fits
Spacecraft file(s): /scratch/kocevski/457252/ft2_4FGL_J0218.9+3643_weekly_bin484.fits
Exposure map: /scratch/kocevski/457252/expmap_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.fits
Exposure cube: /scratch/kocevski/457252/ltcube_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/457252/Model_4FGL_J0218.9+3643_weekly_bin484.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) = 22214.6816587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .69080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51352E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49655E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.652       1.0000         .10000E-03   10000.    
     7 'norm      '    8.7672       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .95919       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5621       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1113       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .50629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4461       1.0000         .10000E-03   10000.    
    15 'norm      '    10.352       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.9358       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.290       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6422       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1552       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96485       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   22214.68     FROM MIGRAD    STATUS=FAILED       884 CALLS     3161 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9334        .18142E-02** at limit **
   2  norm          .69055        .57096        .12124E-02    .28916E-02
   3  Prefactor     .10000E-03    4.4427        .77444E-01** at limit **
   4  Prefactor     .38410E-01    1.3237        .36057E-01    .96238E-03
   5  Prefactor     .10000E-03    2.6991        .18142E-02** at limit **
   6  Prefactor     31.670        32.099        .71220E-04    .30649E-04
   7  norm          8.7686        2.9848        .13537E-03   -.92815E-03
   8  Prefactor     .95441        4.7752        .32042E-02    .60570E-02
   9  norm          .10000E-03    .94525        .27706E-03** at limit **
  10  Prefactor     1.5633        5.3813        .34041E-03   -.11034E-03
  11  norm          1.1114        .35164        .47691E-04    .55209E-03
  12  norm          .10000E-03    14.509        .18142E-02** at limit **
  13  norm          .50626        .19195        .38766E-04    .54430E-03
  14  Prefactor     2.4460        3.3323        .13078E-02    .26136E-02
  15  norm          10.351        4.3775        .12453E-03   -.22348E-03
  16  Prefactor     .10000E-03    8.2958        .18142E-02** at limit **
  17  norm          4.9353        1.3764        .88084E-04   -.20651E-04
  18  Prefactor     10.289        14.653        .12491E-03    .13471E-04
  19  norm          .10000E-03    3.5628        .18142E-02** at limit **
  20  Prefactor     8.6404        7.5585        .13635E-03    .39687E-04
  21  Normalizat    1.1554        .15532        .34297E-03   -.42230E-03
  22  Prefactor     .96482        .71005E-01    .18485E-03   -.18458E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   22214.68     FROM SIMPLEX   STATUS=UNCHANGED   1056 CALLS     4217 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9334        .20775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .69055        .57096        .10261E-05   -1.5542    
   3  Prefactor     .10000E-03    4.4427        .22296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38410E-01    1.3237        .10384E-05   -1.5669    
   5  Prefactor     .10000E-03    2.6991        .28366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.670        32.099        .96300E-06   -1.4582    
   7  norm          8.7686        2.9848        .10039E-05   -1.5116    
   8  Prefactor     .95441        4.7752        .10582E-05   -1.5513    
   9  norm          .10000E-03    .94525        .12435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5633        5.3813        .10420E-05   -1.5458    
  11  norm          1.1114        .35164        .10259E-05   -1.5497    
  12  norm          .10000E-03    14.509        .51744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .50626        .19195        .10292E-05   -1.5566    
  14  Prefactor     2.4460        3.3323        .10337E-05   -1.5395    
  15  norm          10.351        4.3775        .10025E-05   -1.5064    
  16  Prefactor     .10000E-03    8.2958        .29595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9353        1.3764        .10085E-05   -1.5264    
  18  Prefactor     10.289        14.653        .10061E-05   -1.5066    
  19  norm          .10000E-03    3.5628        .22542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6404        7.5585        .99885E-06   -1.5120    
  21  Normalizat    1.1554        .15532        .58279E-06   -.87992    
  22  Prefactor     .96482        .71005E-01    .62000E-06   -.93912    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22214.68     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     4566 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9340        .36285E-03** at limit **
   2  norm          .69053        .57071        .48497E-04   -.39383E-04
   3  Prefactor     .10000E-03    3.9754        .83608E-01** at limit **
   4  Prefactor     .38417E-01    1.0478        .42049E-01    .67745E-03
   5  Prefactor     .10000E-03    2.6992        .36285E-03** at limit **
   6  Prefactor     31.670        32.115        .28488E-05   -.38311E-04
   7  norm          8.7686        2.9669        .54149E-05   -.16796E-05
   8  Prefactor     .95440        4.6810        .64083E-03    .23226E-03
   9  norm          .10000E-03    .94528        .55412E-04** at limit **
  10  Prefactor     1.5633        5.3709        .13616E-04   -.33397E-05
  11  norm          1.1114        .35157        .19076E-05   -.95353E-04
  12  norm          .10000E-03    14.509        .36285E-03** at limit **
  13  norm          .50626        .19194        .15506E-05   -.78423E-04
  14  Prefactor     2.4458        3.3219        .52313E-04   -.43464E-04
  15  norm          10.351        4.3697        .49814E-05   -.18258E-05
  16  Prefactor     .10000E-03    8.2971        .36285E-03** at limit **
  17  norm          4.9353        1.3762        .35233E-05   -.25813E-05
  18  Prefactor     10.289        14.653        .49962E-05     .0000    
  19  norm          .10000E-03    3.5630        .36285E-03** at limit **
  20  Prefactor     8.6404        7.5578        .54542E-05     .0000    
  21  Normalizat    1.1554        .15495        .13719E-04   -.94803E-04
  22  Prefactor     .96482        .71013E-01    .36971E-04   -.11636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.690535
  Prefactor  = 0.000100001
  Prefactor  = 0.0384166
  Prefactor  = 0.0001
  Prefactor  = 31.6702
  norm       = 8.76861
  Prefactor  = 0.954404
  norm       = 0.0001
  Prefactor  = 1.5633
  norm       = 1.11135
  norm       = 0.0001
  norm       = 0.506262
  Prefactor  = 2.44581
  norm       = 10.3512
  Prefactor  = 0.0001
  norm       = 4.93534
  Prefactor  = 10.2894
  norm       = 0.0001
  Prefactor  = 8.6404
  Normalizat = 1.15542
  Prefactor  = 0.964821
 **********
 **   18 **HESSE 
 **********

 FCN=   22214.68     FROM HESSE     STATUS=OK           342 CALLS     4908 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9340        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .69053        .57072        .19399E-05   -1.5542    
   3  Prefactor     .10000E-03    4.0928        .81942E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38417E-01    1.1209        .40204E-01   -1.5669    
   5  Prefactor     .10000E-03    2.6992        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.670        32.708        .56976E-06   -1.4582    
   7  norm          8.7686        2.9631        .10830E-05   -1.5116    
   8  Prefactor     .95440        4.6605        .12817E-03   -1.5513    
   9  norm          .10000E-03    .94530        .11082E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5633        5.3679        .27233E-05   -1.5458    
  11  norm          1.1114        .35157        .38153E-06   -1.5497    
  12  norm          .10000E-03    14.509        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .50626        .19192        .37111E-06   -1.5566    
  14  Prefactor     2.4458        3.3209        .20925E-05   -1.5395    
  15  norm          10.351        4.3711        .99628E-06   -1.5064    
  16  Prefactor     .10000E-03    8.2972        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9353        1.3761        .70467E-06   -1.5264    
  18  Prefactor     10.289        14.653        .49962E-05   -1.5066    
  19  norm          .10000E-03    3.5630        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6404        7.5578        .54542E-05   -1.5120    
  21  Normalizat    1.1554        .15495        .27438E-05   -.87992    
  22  Prefactor     .96482        .71006E-01    .73941E-05   -.93911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0762e-10
Minuit parameter uncertainties:
  1  6.08702e-08
  2  0.570727
  3  0.000137509
  4  0.414495
  5  9.84851e-08
  6  32.7269
  7  2.96317
  8  4.21837
  9  6.38622e-08
  10  5.36953
  11  0.351572
  12  2.25844e-07
  13  0.19192
  14  3.32116
  15  4.37121
  16  1.60804e-06
  17  1.37609
  18  14.6582
  19  3.59572e-07
  20  7.5586
  21  0.155015
  22  0.0710127
Done.

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

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  1.000e-04  6.386e-08  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.474e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.648e-01  7.101e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.155e+00  1.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.747 36.718
Photon Flux Upper Limit: 3.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/457252/likelihoodResults_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.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) = 22214.6837965
delta logL = -0.00505078213973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22214.6787452
delta logL = 4.635512596e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4517       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96483       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=   22214.68     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      215 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.428        .90712E-02** at limit **
   2  alpha         1.8140        2.7468        .41161        .11987E-06
   3  Normalizat    1.1554        .15585E-01    .77487E-01    .55067E-04
   4  Prefactor     .96482        .77918E-02    .45826E-01    .12202E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.814
  Normalizat = 1.15542
  Prefactor  = 0.964821
 **********
 **   18 **HESSE 
 **********

 FCN=   22214.68     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4550        .32908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8140        2.5392        .16465       -.27797    
   3  Normalizat    1.1554        .13888        .34297E-03   -.87992    
   4  Prefactor     .96482        .69546E-01    .18485E-03   -.93911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54936e-11
Minuit parameter uncertainties:
  1  4.2618e-06
  2  120.919
  3  0.138922
  4  0.0695528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457252': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22214.6787307
delta logL = 1.50346168084e-05

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  1.000e-04  4.262e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.814e+00  1.209e+02  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.648e-01  6.955e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.155e+00  1.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 34.747 36.718

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/457252/cmap_HighResolution_531705601_532310401_4FGL_J0218.9+3643_weekly_bin484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-05', job_status='DONE', photon_flux_upper_limit='3.70e-08', time_completed='2021-07-04 19:12:07.723811', job_id='457252', GAL2='0.96', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1625451127.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.50e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='484' AND source_name='4FGL J0218.9+3643' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 457252: <4FGL_J0218.9+3643_weekly_bin484> in cluster <slac> Done

Job <4FGL_J0218.9+3643_weekly_bin484> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Jul  4 13:57:12 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 13:57:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 13:57:14 2021
Terminated at Sun Jul  4 19:12:11 2021
Results reported at Sun Jul  4 19:12:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9+3643_weekly_bin484 34.7473 36.7176 531705601 532310401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0218.9+3643 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2305.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             90.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18895 sec.
    Turnaround time :                            18899 sec.

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

