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


Performing analysis on: 4FGL_J0217.4+7352_monthly_bin167
RA = 34.3533, Dec = 73.8804
tmin = 669859201, tmax = 672451201
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='877522', job_status='RUN', time_executed='2022-04-24 00:58:20.542764', time_epoch_executed='1650787100.54' WHERE source_name='4FGL J0217.4+7352' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877522

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877522/ft1_4FGL_J0217.4+7352_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877522/ft1_4FGL_J0217.4+7352_monthly_bin167.fits outfile=/scratch/kocevski/877522/ft1_filteredMKT_4FGL_J0217.4+7352_monthly_bin167.fits ra=34.3533 dec=73.8804 rad=12.0 tmin=669859201.0 tmax=672451201.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 40.12
user 37.16
sys 1.00

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.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/877522/ft1_filteredMKT_4FGL_J0217.4+7352_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/877522/ft1_filtered_4FGL_J0217.4+7352_monthly_bin167.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.89
user 0.68
sys 0.20

Number of photons that the gtmktime cut: 31034

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877522/ft1_filtered_4FGL_J0217.4+7352_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/877522/ltcube_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.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/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits
.....................!
real 117.79
user 117.20
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877522/ft1_filtered_4FGL_J0217.4+7352_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/877522/ltcube_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.fits outfile=/scratch/kocevski/877522/expmap_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.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/877522/ltcube_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.fits
.....................!
real 193.26
user 186.81
sys 6.04

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 193 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 J0217.4+7352 @ 34.3533 73.8804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/877522/ft1_filtered_4FGL_J0217.4+7352_monthly_bin167.fits scfile=/scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits outfile=/scratch/kocevski/877522/cmap_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.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.3533 yref=73.8804 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.86
user 0.68
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877522/ft1_filtered_4FGL_J0217.4+7352_monthly_bin167.fits scfile=/scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits outfile=/scratch/kocevski/877522/cmap_HighResolution_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.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.3533 yref=73.8804 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.86
user 0.67
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877522/ft1_filtered_4FGL_J0217.4+7352_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877522/Model_4FGL_J0217.4+7352_monthly_bin167.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 HB 3
adding source W 3
Working on...
/scratch/kocevski/877522/ft1_filtered_4FGL_J0217.4+7352_monthly_bin167.fits.....................!
real 4024.22
user 4015.58
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/877522/ft1_filtered_4FGL_J0217.4+7352_monthly_bin167.fits', '/scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits', expMap='/scratch/kocevski/877522/expmap_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.fits', expCube='/scratch/kocevski/877522/ltcube_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/877522/Model_4FGL_J0217.4+7352_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0217.4+7352'

4FGL J0217.4+7352
   Spectrum: PowerLaw
214    Prefactor:  1.785e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        Index:  2.940e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
216        Scale:  3.641e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/877522/ft1_filtered_4FGL_J0217.4+7352_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/877522/ft2_4FGL_J0217.4+7352_monthly_bin167.fits
Exposure map: /scratch/kocevski/877522/expmap_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.fits
Exposure cube: /scratch/kocevski/877522/ltcube_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/877522/Model_4FGL_J0217.4+7352_monthly_bin167.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) = 294739.441721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49851       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0136       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9144       1.0000         .10000E-03   10000.    
     5 'norm      '    4.5319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7021       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7748       1.0000         .10000E-03   10000.    
     9 'norm      '    .72793       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29556       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6237       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98247       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   294739.4     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1449 TOTAL
                     EDM=   .82E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49864        .34037       -.37860E-08    .18728E-03
   2  Prefactor     3.0124        3.6109        .70828E-07   -.10264E-04
   3  Prefactor     .10000E-03    6.9162       -.11448E-06** at limit **
   4  Prefactor     1.9143        .27002        .10394E-08   -.19706E-03
   5  norm          4.5326        2.7931       -.55520E-06    .15569E-05
   6  Prefactor     7.7021        .97114       -.57902E-07    .28555E-04
   7  Prefactor     .10000E-03    .88645       -.10268E-06** at limit **
   8  norm          3.7828        1.9509        .10901E-06   -.14772E-04
   9  norm          .72781        .73859        .10924E-06   -.63940E-03
  10  Prefactor     12.884        8.7900        .22168E-05    .46228E-05
  11  Prefactor     .29715        .42030       -.96447E-07   -.96940E-03
  12  Prefactor     .10000E-03    .34586       -.14841E-07** at limit **
  13  Prefactor     1.9051        1.7430       -.10736E-06   -.21780E-05
  14  Prefactor     1.6334        5.4027       -.54911E-05    .26486E-04
  15  Prefactor     .10000E-03    .35375       -.10075E-07** at limit **
  16  Normalizat    1.1248        .66835E-01    .25777E-06    .74867E-04
  17  Prefactor     .98246        .10236E-01   -.56050E-07    .69886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.498639
  Prefactor  = 3.01236
  Prefactor  = 0.0001
  Prefactor  = 1.91435
  norm       = 4.53263
  Prefactor  = 7.70212
  Prefactor  = 0.0001
  norm       = 3.78283
  norm       = 0.727806
  Prefactor  = 12.8837
  Prefactor  = 0.297147
  Prefactor  = 0.0001
  Prefactor  = 1.90513
  Prefactor  = 1.63336
  Prefactor  = 0.0001
  Normalizat = 1.12485
  Prefactor  = 0.982465
 **********
 **   18 **HESSE 
 **********

 FCN=   294739.4     FROM HESSE     STATUS=OK           237 CALLS     1686 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49864        .69257        .24705E-02   -1.5567    
   2  Prefactor     3.0124        3.6143        .11690E-02   -1.5361    
   3  Prefactor     .10000E-03    6.9780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9143        .26914        .10158E-03   -1.5431    
   5  norm          4.5326        2.7887        .18911E-03   -1.5282    
   6  Prefactor     7.7021        .96803        .14449E-03   -1.5153    
   7  Prefactor     .10000E-03    .89960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7828        1.9498        .10389E-02   -1.5319    
   9  norm          .72781        .99689        .24337E-02   -1.5537    
  10  Prefactor     12.884        9.0018        .11161E-03   -1.4990    
  11  Prefactor     .29715        .63900        .20811E-02   -1.5599    
  12  Prefactor     .10000E-03    .34980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9051        1.7372        .30139E-03   -1.5432    
  14  Prefactor     1.6334        5.4005        .33206E-03   -1.5452    
  15  Prefactor     .10000E-03    2.5728        .62331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1248        .66744E-01    .74972E-03   -.88958    
  17  Prefactor     .98246        .10605E-01    .12495E-03   -.93316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98607e-07
Minuit parameter uncertainties:
  1  0.692578
  2  3.61453
  3  3.77956e-05
  4  0.269144
  5  2.7888
  6  0.968036
  7  8.11653e-08
  8  1.9498
  9  0.996916
  10  9.00274
  11  0.639015
  12  8.7529e-10
  13  1.73725
  14  5.40207
  15  4.76856e-06
  16  0.066749
  17  0.0106052
Done.

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

Extracting fit parameters...

4FGL J0217.4+7352
   Spectrum: PowerLaw
214    Prefactor:  7.702e+00  9.680e-01  1.000e-04  1.000e+04 ( 1.000e-11)
215        Index:  2.940e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
216        Scale:  3.641e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  9.825e-01  1.061e-02  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.125e+00  6.675e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 87.50
Ra Dec: 34.353 73.880
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 1.78e-07 +/- 2.23e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 4.59e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 294737.499609
delta logL = 1.89076281775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 294737.499361
delta logL = 1.89101083792

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   294737.5     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      291 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6940        1.1404        .13594E-03    .74935E-04
   2  Index         2.6637        .13256        .11835E-01    .54469E-04
   3  Normalizat    1.1423        .65872E-01    .74496E-03    .39068E-05
   4  Prefactor     .98077        .10260E-01    .12504E-03    .58189E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.69404
  Index      = 2.66367
  Normalizat = 1.14234
  Prefactor  = 0.980773
 **********
 **   18 **HESSE 
 **********

 FCN=   294737.5     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .55E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6940        1.1232        .54374E-05   -1.5118    
   2  Index         2.6637        .13051        .47341E-03   -.48620    
   3  Normalizat    1.1423        .65893E-01    .29798E-04   -.88404    
   4  Prefactor     .98077        .10258E-01    .50016E-05   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47715e-14
Minuit parameter uncertainties:
  1  1.1232
  2  0.130533
  3  0.0658978
  4  0.0102578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877522': 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) = 294737.499359
delta logL = 1.89101272158

Extracting fit parameters...

4FGL J0217.4+7352
   Spectrum: PowerLaw
214    Prefactor:  8.694e+00  1.123e+00  1.000e-04  1.000e+04 ( 1.000e-11)
215        Index:  2.664e+00  1.305e-01  0.000e+00  1.000e+01 (-1.000e+00)
216        Scale:  3.641e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  9.808e-01  1.026e-02  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.142e+00  6.590e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 90.59
Ra Dec: 34.353 73.880
Photon Index (Free Index): 2.66 +/- 0.13
Photon Flux (Free Index): 1.64e-07 +/- 2.27e-08
Energy Flux (Free Index): 4.05e-05 +/- 5.47e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/877522/cmap_HighResolution_669859201_672451201_4FGL_J0217.4+7352_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-07', energy_flux2='4.05e-05', photon_flux_error='2.23e-08', dlogl='1.89e+00', energy_flux='3.66e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2022-04-24 04:48:27.620026', photon_index_error2='0.13', photon_index2='2.66', ts='87.50', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='5.47e-06', EG='1.12', time_epoch_completed='1650800907.62', return_code='0', job_id='877522', GAL2='0.98', EG2='1.14', return_code2='0', energy_flux_error='4.59e-06', photon_flux_error2='2.27e-08', ts2='90.59', photon_index='2.94' WHERE bin_id='167' AND source_name='4FGL J0217.4+7352' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:48:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 877522: <4FGL_J0217.4+7352_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0217.4+7352_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:50:41 2022
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:54:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:54:58 2022
Terminated at Sun Apr 24 04:48:29 2022
Results reported at Sun Apr 24 04:48:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.4+7352_monthly_bin167 34.3533 73.8804 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.4+7352 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13773.00 sec.
    Max Memory :                                 815 MB
    Average Memory :                             721.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14011 sec.
    Turnaround time :                            14268 sec.

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

