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


Performing analysis on: 4FGL_J0625.3+4439_weekly_bin517
RA = 96.3288, Dec = 44.6648
tmin = 551664001, tmax = 552268801
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='544203', job_status='RUN', time_executed='2021-07-09 18:07:01.568733', time_epoch_executed='1625879221.57' WHERE source_name='4FGL J0625.3+4439' and cadence='weekly' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544203

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544203/ft1_4FGL_J0625.3+4439_weekly_bin517.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544203/ft1_4FGL_J0625.3+4439_weekly_bin517.fits outfile=/scratch/kocevski/544203/ft1_filteredMKT_4FGL_J0625.3+4439_weekly_bin517.fits ra=96.3288 dec=44.6648 rad=12.0 tmin=551664001.0 tmax=552268801.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 6.69
user 6.07
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.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/544203/ft1_filteredMKT_4FGL_J0625.3+4439_weekly_bin517.fits evtable="EVENTS" outfile="/scratch/kocevski/544203/ft1_filtered_4FGL_J0625.3+4439_weekly_bin517.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.77
user 0.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544203/ft1_filtered_4FGL_J0625.3+4439_weekly_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/544203/ltcube_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.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/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits
.....................!
real 21.17
user 20.24
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544203/ft1_filtered_4FGL_J0625.3+4439_weekly_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/544203/ltcube_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.fits outfile=/scratch/kocevski/544203/expmap_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.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/544203/ltcube_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.fits
.....................!
real 154.98
user 148.99
sys 3.49

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 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 166 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 J0625.3+4439 @ 96.3288 44.6648

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/544203/ft1_filtered_4FGL_J0625.3+4439_weekly_bin517.fits scfile=/scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits outfile=/scratch/kocevski/544203/cmap_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.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=96.3288 yref=44.6648 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.50
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544203/ft1_filtered_4FGL_J0625.3+4439_weekly_bin517.fits scfile=/scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits outfile=/scratch/kocevski/544203/cmap_HighResolution_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.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=96.3288 yref=44.6648 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.53
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/544203/ft1_filtered_4FGL_J0625.3+4439_weekly_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544203/Model_4FGL_J0625.3+4439_weekly_bin517.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 9
adding source S 147
Working on...
/scratch/kocevski/544203/ft1_filtered_4FGL_J0625.3+4439_weekly_bin517.fits......................!
real 72.53
user 70.56
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/544203/ft1_filtered_4FGL_J0625.3+4439_weekly_bin517.fits', '/scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits', expMap='/scratch/kocevski/544203/expmap_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.fits', expCube='/scratch/kocevski/544203/ltcube_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/544203/Model_4FGL_J0625.3+4439_weekly_bin517.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0625.3+4439'

4FGL J0625.3+4439
   Spectrum: PowerLaw
249    Prefactor:  2.347e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.093e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.886e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/544203/ft1_filtered_4FGL_J0625.3+4439_weekly_bin517.fits
Spacecraft file(s): /scratch/kocevski/544203/ft2_4FGL_J0625.3+4439_weekly_bin517.fits
Exposure map: /scratch/kocevski/544203/expmap_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.fits
Exposure cube: /scratch/kocevski/544203/ltcube_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/544203/Model_4FGL_J0625.3+4439_weekly_bin517.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) = 3327.55103237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.747       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.6979       1.0000         .10000E-03   10000.    
     7 'norm      '    9.2693       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.507       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.9179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41791E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10418E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11100E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12078E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .10043E-01   1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98170       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3327.542     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1621 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2398       -.58384E-08** at limit **
   2  Prefactor     35.729        46.179        .31450E-05    .19589E-03
   3  norm          .10000E-03    2.3734        .28638E-07** at limit **
   4  Prefactor     .10000E-03    1558.6       -.11811E-02** at limit **
   5  norm          .10000E-03    46.819        .30672E-06** at limit **
   6  norm          6.6969        9.7842       -.62544E-05    .87368E-04
   7  norm          9.2678        11.542        .35645E-05    .49051E-03
   8  Prefactor     28.514        46.415       -.17047E-05    .57215E-04
   9  norm          .10000E-03    660.01       -.30705E-03** at limit **
  10  norm          8.9067        34.755        .10670E-04   -.28561E-03
  11  Prefactor     .10003E-03    402.52        .14222E-03** at limit **
  12  norm          .10000E-03    619.34       -.22419E-03** at limit **
  13  Prefactor     .10000E-03    85.920       -.58263E-05** at limit **
  14  Prefactor     .10000E-03    7828.6       -.17648E-02** at limit **
  15  norm          .10001E-03    414.24        .33489E-03** at limit **
  16  Normalizat    .10000E-01    .72184       -.20571E-04** at limit **
  17  Prefactor     .98182        .10083        .18861E-06    .15022E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 35.7291
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.69695
  norm       = 9.26778
  Prefactor  = 28.5139
  norm       = 0.0001
  norm       = 8.9067
  Prefactor  = 0.000100032
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Normalizat = 0.01
  Prefactor  = 0.981824
 **********
 **   18 **HESSE 
 **********

 FCN=   3327.542     FROM HESSE     STATUS=OK           219 CALLS     1840 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2645        .10140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.729        47.014        .67028E-04   -1.4512    
   3  norm          .10000E-03    2.3963        .86693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1559.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    47.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.6969        9.7947        .15505E-03   -1.5190    
   7  norm          9.2678        11.584        .13164E-03   -1.5099    
   8  Prefactor     28.514        46.391        .75036E-04   -1.4639    
   9  norm          .10000E-03    660.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.9067        34.606        .13422E-03   -1.5111    
  11  Prefactor     .10003E-03    402.25        .21243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    619.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    85.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7829.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    414.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .10000E-01    .80180        .37632       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .98182        .10942        .12373E-03   -.93338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86593e-09
Minuit parameter uncertainties:
  1  2.44321e-06
  2  47.0627
  3  1.35016e-05
  4  3.23478e-05
  5  0.000134028
  6  9.79708
  7  11.5865
  8  46.4496
  9  5.05641e-06
  10  34.6841
  11  0.00725812
  12  0.000146792
  13  2.62811e-06
  14  0.000109196
  15  0.00321393
  16  7.90303e-05
  17  0.109448
Done.

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

Extracting fit parameters...

4FGL J0625.3+4439
   Spectrum: PowerLaw
249    Prefactor:  2.851e+01  4.645e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.093e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.886e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.818e-01  1.094e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.000e-02  7.903e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 96.329 44.665
Photon Flux Upper Limit: 6.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544203/likelihoodResults_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.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): 0
logL (Free Index) = 3327.46229409
delta logL = 0.0797746825856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3327.46119075
delta logL = 0.0808780295088

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3327.461     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      323 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.333        6466.7        .15779E-02    .44108E-04
   2  Index         1.7732        6.0906        .18226        .40338E-04
   3  Normalizat    .10000E-01    .31171        .37797    ** at limit **
   4  Prefactor     .98190        .60692E-01    .27987E-01    .16244E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.3328
  Index      = 1.77324
  Normalizat = 0.01
  Prefactor  = 0.981895
 **********
 **   18 **HESSE 
 **********

 FCN=   3327.461     FROM HESSE     STATUS=OK            37 CALLS      360 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.333        61.713        .63116E-04   -1.4437    
   2  Index         1.7732        .75466        .91544E-02   -.70148    
   3  Normalizat    .10000E-01    .80005        .37797       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98190        .98768E-01    .12371E-03   -.93335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83118e-09
Minuit parameter uncertainties:
  1  61.8113
  2  0.759663
  3  0.000228903
  4  0.0987857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544203': 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) = 3327.46119061
delta logL = 0.0808781685805

Extracting fit parameters...

4FGL J0625.3+4439
   Spectrum: PowerLaw
249    Prefactor:  4.033e+01  6.181e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.773e+00  7.597e-01  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.886e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.819e-01  9.879e-02  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.000e-02  2.289e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
Ra Dec: 96.329 44.665

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/544203/cmap_HighResolution_551664001_552268801_4FGL_J0625.3+4439_weekly_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-02', job_status='DONE', photon_flux_upper_limit='6.56e-07', time_completed='2021-07-09 18:14:34.662297', job_id='544203', GAL2='0.98', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625879674.66', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.09e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='517' AND source_name='4FGL J0625.3+4439' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul  9 18:14:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 544203: <4FGL_J0625.3+4439_weekly_bin517> in cluster <slac> Done

Job <4FGL_J0625.3+4439_weekly_bin517> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Jul  9 18:02:52 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  9 18:05:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  9 18:05:22 2021
Terminated at Fri Jul  9 18:14:35 2021
Results reported at Fri Jul  9 18:14:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0625.3+4439_weekly_bin517 96.3288 44.6648 551664001 552268801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0625.3+4439 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   423.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             334.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   553 sec.
    Turnaround time :                            703 sec.

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

