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


Performing analysis on: 4FGL_J0242.3+5216_weekly_bin715
RA = 40.5974, Dec = 52.2798
tmin = 671414401, tmax = 672019201
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='933759', job_status='RUN', time_executed='2022-04-19 02:22:50.019847', time_epoch_executed='1650360170.02' WHERE source_name='4FGL J0242.3+5216' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933759

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933759/ft1_4FGL_J0242.3+5216_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933759/ft1_4FGL_J0242.3+5216_weekly_bin715.fits outfile=/scratch/kocevski/933759/ft1_filteredMKT_4FGL_J0242.3+5216_weekly_bin715.fits ra=40.5974 dec=52.2798 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.64
user 7.30
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.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/933759/ft1_filteredMKT_4FGL_J0242.3+5216_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/933759/ft1_filtered_4FGL_J0242.3+5216_weekly_bin715.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.58
user 0.40
sys 0.17

Number of photons that the gtmktime cut: 6881

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933759/ft1_filtered_4FGL_J0242.3+5216_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/933759/ltcube_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.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/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits
.....................!
real 28.34
user 27.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933759/ft1_filtered_4FGL_J0242.3+5216_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/933759/ltcube_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.fits outfile=/scratch/kocevski/933759/expmap_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.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/933759/ltcube_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.fits
.....................!
real 191.85
user 185.94
sys 5.57

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.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 186 point sources and 3 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 J0242.3+5216 @ 40.5974 52.2798

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933759/ft1_filtered_4FGL_J0242.3+5216_weekly_bin715.fits scfile=/scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits outfile=/scratch/kocevski/933759/cmap_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.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=40.5974 yref=52.2798 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.63
user 0.43
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933759/ft1_filtered_4FGL_J0242.3+5216_weekly_bin715.fits scfile=/scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits outfile=/scratch/kocevski/933759/cmap_HighResolution_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.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=40.5974 yref=52.2798 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.65
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933759/ft1_filtered_4FGL_J0242.3+5216_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933759/Model_4FGL_J0242.3+5216_weekly_bin715.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/933759/ft1_filtered_4FGL_J0242.3+5216_weekly_bin715.fits.....................!
real 852.71
user 849.92
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933759/ft1_filtered_4FGL_J0242.3+5216_weekly_bin715.fits', '/scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits', expMap='/scratch/kocevski/933759/expmap_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.fits', expCube='/scratch/kocevski/933759/ltcube_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933759/Model_4FGL_J0242.3+5216_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0242.3+5216'

4FGL J0242.3+5216
   Spectrum: LogParabola
336         norm:  5.529e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        alpha:  2.672e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
338         beta:  2.161e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
339           Eb:  5.445e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933759/ft1_filtered_4FGL_J0242.3+5216_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/933759/ft2_4FGL_J0242.3+5216_weekly_bin715.fits
Exposure map: /scratch/kocevski/933759/expmap_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.fits
Exposure cube: /scratch/kocevski/933759/ltcube_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933759/Model_4FGL_J0242.3+5216_weekly_bin715.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) = 64589.6932105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7027       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5230       1.0000         .10000E-03   10000.    
     4 'norm      '    .44506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10865E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    23.093       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3648       1.0000         .10000E-03   10000.    
     8 'norm      '    14.484       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42848       1.0000         .10000E-03   10000.    
    10 'norm      '    5.6749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.009       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.225       1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.1557       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .96964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   64589.57     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      906 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .14478        .46803E-06** at limit **
   2  Prefactor     2.7026        1.7751       -.16530E-06    .10959E-03
   3  Prefactor     9.5244        4.6945       -.10577E-04   -.64784E-03
   4  norm          .44504        .16689       -.56030E-07    .14158E-03
   5  Prefactor     .10006E-03    101.79        .10921E-04** at limit **
   6  norm          23.097        6.5806        .87070E-06    .18391E-02
   7  norm          3.3648        .34371       -.19107E-07    .17915E-03
   8  norm          14.485        5.8344       -.10574E-04   -.82375E-02
   9  Prefactor     .42900        .96557        .23349E-05   -.52656E-03
  10  norm          5.6750        2.5860        .84731E-07   -.23696E-04
  11  Prefactor     10.998        1.8689        .27291E-05   -.22275E-02
  12  Prefactor     15.234        5.3819       -.96144E-05    .91572E-02
  13  Normalizat    1.1558        .14730        .39285E-05    .10828E-04
  14  Prefactor     .96963        .20748E-01    .15430E-07    .16538E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.70264
  Prefactor  = 9.52437
  norm       = 0.445038
  Prefactor  = 0.00010006
  norm       = 23.0969
  norm       = 3.36484
  norm       = 14.485
  Prefactor  = 0.428999
  norm       = 5.675
  Prefactor  = 10.9984
  Prefactor  = 15.2343
  Normalizat = 1.15576
  Prefactor  = 0.969634
 **********
 **   18 **HESSE 
 **********

 FCN=   64589.57     FROM HESSE     STATUS=OK           206 CALLS     1112 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .89510E-01    .31127E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7026        1.7792        .61946E-02   -1.5379    
   3  Prefactor     9.5244        8.7997        .32465E-02   -1.5091    
   4  norm          .44504        .16837        .11044E-01   -1.5575    
   5  Prefactor     .10006E-03    102.19        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.097        6.6032        .20838E-02   -1.4746    
   7  norm          3.3648        .34381        .55152E-02   -1.5341    
   8  norm          14.485        7.7380        .26310E-02   -1.4947    
   9  Prefactor     .42900        1.0055        .10975E-01   -1.5577    
  10  norm          5.6750        2.5906        .42155E-02   -1.5231    
  11  Prefactor     10.998        18.448        .30187E-02   -1.5045    
  12  Prefactor     15.234        12.570        .25662E-02   -1.4927    
  13  Normalizat    1.1558        .14940        .18007       -.87981    
  14  Prefactor     .96963        .20520E-01    .27972E-01   -.93749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57006e-07
Minuit parameter uncertainties:
  1  7.16768e-07
  2  1.7792
  3  8.8009
  4  0.168374
  5  0.00494066
  6  6.60337
  7  0.343807
  8  7.73851
  9  1.00554
  10  2.59067
  11  18.4572
  12  12.5723
  13  0.149453
  14  0.0205203
Done.

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

Extracting fit parameters...

4FGL J0242.3+5216
   Spectrum: LogParabola
336         norm:  1.448e+01  7.739e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        alpha:  2.672e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
338         beta:  2.161e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
339           Eb:  5.445e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  9.696e-01  2.052e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  1.156e+00  1.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.14
Ra Dec: 40.597 52.280
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 5.84e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 7.91e-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) = 64589.2215224
delta logL = 0.349374528596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 64589.2111678
delta logL = 0.359729112432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.346       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1618       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97063       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+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=   64589.21     FROM MIGRAD    STATUS=FAILED        88 CALLS      289 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.347        9.9495        .11894E-03   -.62246E-03
   2  alpha         3.1618        .76927        .35538E-01    .16895E-02
   3  Normalizat    1.1364        .14451        .80785E-03    .32581E-03
   4  Prefactor     .97064        .20397E-01    .12356E-03    .25273E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   64589.21     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      359 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.347        9.9495        .12242E-03   -1.5034    
   2  alpha         3.1618        .76927        .88295E-03    .26793    
   3  Normalizat    1.1364        .14451        .20022E-03   -.88591    
   4  Prefactor     .97064        .20397E-01    .26575E-04   -.93715    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   64589.21     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      387 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.347        8.0282        .47574E-05   -.91764E-04
   2  alpha         3.1618        .62411        .71076E-02    .69413E-04
   3  Normalizat    1.1364        .14431        .32314E-04   -.39404E-05
   4  Prefactor     .97064        .20375E-01    .24712E-04   -.12513E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3466
  alpha      = 3.16184
  Normalizat = 1.13643
  Prefactor  = 0.970636
 **********
 **   18 **HESSE 
 **********

 FCN=   64589.21     FROM HESSE     STATUS=OK            25 CALLS      412 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.347        7.7864        .95148E-06   -1.5034    
   2  alpha         3.1618        .60601        .14215E-02    .26793    
   3  Normalizat    1.1364        .14430        .64628E-05   -.88591    
   4  Prefactor     .97064        .20374E-01    .49424E-05   -.93715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9084e-12
Minuit parameter uncertainties:
  1  7.78713
  2  0.612584
  3  0.144346
  4  0.0203745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933759': 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) = 64589.2111678
delta logL = 0.359729124139

Extracting fit parameters...

4FGL J0242.3+5216
   Spectrum: LogParabola
336         norm:  1.135e+01  7.787e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        alpha:  3.162e+00  6.126e-01  0.000e+00  5.000e+00 ( 1.000e+00)
338         beta:  2.161e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
339           Eb:  5.445e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  9.706e-01  2.037e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  1.136e+00  1.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.94
Ra Dec: 40.597 52.280
Photon Index (Free Index): 3.16 +/- 0.61
Photon Flux (Free Index): 7.80e-08 +/- 4.03e-08
Energy Flux (Free Index): 1.57e-05 +/- 7.43e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/933759/cmap_HighResolution_671414401_672019201_4FGL_J0242.3+5216_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.84e-08', energy_flux2='1.57e-05', photon_flux_error='3.12e-08', dlogl='3.60e-01', energy_flux='1.48e-05', photon_flux2='7.80e-08', job_status='DONE', time_completed='2022-04-19 03:06:50.786052', photon_index_error2='0.61', photon_index2='3.16', ts='5.14', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='7.43e-06', EG='1.16', time_epoch_completed='1650362810.79', return_code='0', job_id='933759', GAL2='0.97', EG2='1.14', return_code2='0', energy_flux_error='7.91e-06', photon_flux_error2='4.03e-08', ts2='5.94', photon_index='2.67' WHERE bin_id='715' AND source_name='4FGL J0242.3+5216' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:06:50 PDT 2022

------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 930066: <4FGL_J0242.3+5216_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0242.3+5216_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:05:38 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:09:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:09:39 2022
Terminated at Tue Apr 19 02:55:28 2022
Results reported at Tue Apr 19 02:55:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+5216_weekly_bin715 40.5974 52.2798 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0242.3+5216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2683.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             448.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2749 sec.
    Turnaround time :                            10190 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 933759: <4FGL_J0242.3+5216_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0242.3+5216_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:16:30 2022
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:21:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:21:11 2022
Terminated at Tue Apr 19 03:06:51 2022
Results reported at Tue Apr 19 03:06:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+5216_weekly_bin715 40.5974 52.2798 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0242.3+5216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2640.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             450.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2742 sec.
    Turnaround time :                            10221 sec.

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

