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 133 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0324.8-2043_daily_bin1712
RA = 51.2191, Dec = -20.7285
tmin = 683078401, tmax = 683337601
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='12664', job_status='RUN', time_executed='2022-09-16 10:48:19.789457', time_epoch_executed='1663350499.79' WHERE source_name='4FGL J0324.8-2043' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12664

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12664/ft1_4FGL_J0324.8-2043_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12664/ft1_4FGL_J0324.8-2043_daily_bin1712.fits outfile=/scratch/kocevski/12664/ft1_filteredMKT_4FGL_J0324.8-2043_daily_bin1712.fits ra=51.2191 dec=-20.7285 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.79
user 4.57
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.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/12664/ft1_filteredMKT_4FGL_J0324.8-2043_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/12664/ft1_filtered_4FGL_J0324.8-2043_daily_bin1712.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 524

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12664/ft1_filtered_4FGL_J0324.8-2043_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/12664/ltcube_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.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/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits
.....................!
real 12.08
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12664/ft1_filtered_4FGL_J0324.8-2043_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/12664/ltcube_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.fits outfile=/scratch/kocevski/12664/expmap_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.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/12664/ltcube_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.fits
.....................!
real 190.80
user 185.54
sys 4.87

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 167 point sources and 1 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 J0324.8-2043 @ 51.2191 -20.7285

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/12664/ft1_filtered_4FGL_J0324.8-2043_daily_bin1712.fits scfile=/scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits outfile=/scratch/kocevski/12664/cmap_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.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=51.2191 yref=-20.7285 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12664/ft1_filtered_4FGL_J0324.8-2043_daily_bin1712.fits scfile=/scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits outfile=/scratch/kocevski/12664/cmap_HighResolution_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.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=51.2191 yref=-20.7285 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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/12664/ft1_filtered_4FGL_J0324.8-2043_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12664/Model_4FGL_J0324.8-2043_daily_bin1712.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/12664/ft1_filtered_4FGL_J0324.8-2043_daily_bin1712.fits.....................!
real 127.78
user 126.35
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/12664/ft1_filtered_4FGL_J0324.8-2043_daily_bin1712.fits', '/scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits', expMap='/scratch/kocevski/12664/expmap_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.fits', expCube='/scratch/kocevski/12664/ltcube_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/12664/Model_4FGL_J0324.8-2043_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0324.8-2043'

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  7.558e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
266        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.862e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/12664/ft1_filtered_4FGL_J0324.8-2043_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/12664/ft2_4FGL_J0324.8-2043_daily_bin1712.fits
Exposure map: /scratch/kocevski/12664/expmap_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.fits
Exposure cube: /scratch/kocevski/12664/ltcube_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/12664/Model_4FGL_J0324.8-2043_daily_bin1712.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) = 5883.27552052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33307E-09   1.0000          .0000       .10000E+07
     2 'Prefactor '    .40512E-06   1.0000          .0000       .10000E+07
     3 'norm      '    2.2186       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.0037       1.0000          .0000       .10000E+07
     5 'Prefactor '    .31733       1.0000          .0000       .10000E+07
     6 'Prefactor '    .33277E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.5001       1.0000          .0000       .10000E+07
     8 'Prefactor '    .98275E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .20606E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .94602E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .84582E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16404E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13164E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10325E-07   1.0000          .0000       .10000E+07
    15 'norm      '    5.6534       1.0000          .0000       .10000E+07
    16 'Prefactor '    33.005       1.0000          .0000       .10000E+07
    17 'norm      '    2.6102       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.0628       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.6052       1.0000          .0000       .10000E+07
    20 'norm      '    .15077E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .67827E-04   1.0000          .0000       .10000E+07
    22 'Normalizat'    .91038       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5883.141     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1468 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .55953        .29796E-07** at limit **
   2  Prefactor      .0000        4.0570        .17989E-08** at limit **
   3  norm          2.2189        2.0836       -.73708E-07   -.36149E-02
   4  Prefactor     6.3443        8.5110       -.25579E-07   -.66117E-01
   5  Prefactor     .38453        14.832        .33271E-06    .16008E-03
   6  Prefactor     .11102E-08    .98338       -.34132E-07** at limit **
   7  Prefactor     3.5097        3.6050        .49830E-07    .15217E-02
   8  Prefactor     .27062E-06    17.796       -.14695E-07** at limit **
   9  Prefactor     .32752E-08    5.4824       -.91343E-08** at limit **
  10  Prefactor     .53757E-06    9.4453        .13815E-06** at limit **
  11  Prefactor     .95346E-06    10.046        .10386E-06** at limit **
  12  Prefactor      .0000        .76135        .86279E-08** at limit **
  13  Prefactor      .0000        .74097       -.29998E-07** at limit **
  14  Prefactor      .0000        .91382       -.23846E-07** at limit **
  15  norm          5.6549        1.2307       -.78984E-08   -.25150E-02
  16  Prefactor     32.152        27.818       -.25416E-07    .15219E-01
  17  norm          2.6116        1.5717       -.20081E-07   -.24697E-02
  18  Prefactor     4.9342        8.5771        .73202E-07   -.25434E-02
  19  Prefactor     2.6054        2.4605       -.35537E-07   -.17691E-02
  20  norm          .11102E-09    3.6601        .18869E-06** at limit **
  21  Prefactor     .32807E-07    9.1696       -.18261E-06** at limit **
  22  Normalizat    .91004        .18492        .65246E-06    .55229E-04
  23  Prefactor     .97209        .17609        .18177E-06    .68362E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  norm       = 2.21888
  Prefactor  = 6.34431
  Prefactor  = 0.384527
  Prefactor  = 1.11022e-09
  Prefactor  = 3.50974
  Prefactor  = 2.70617e-07
  Prefactor  = 3.27516e-09
  Prefactor  = 5.3757e-07
  Prefactor  = 9.5346e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 5.65488
  Prefactor  = 32.1523
  norm       = 2.61162
  Prefactor  = 4.93425
  Prefactor  = 2.60544
  norm       = 1.11022e-10
  Prefactor  = 3.28071e-08
  Normalizat = 0.910036
  Prefactor  = 0.972093
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.141     FROM HESSE     STATUS=OK           416 CALLS     1884 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .55810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.0496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2189        2.0781        .69015E-03   -1.5678    
   4  Prefactor     6.3443        11.130        .40956E-03   -1.5658    
   5  Prefactor     .38453        2.8445        .71522E-02   -1.5696    
   6  Prefactor     .11102E-08    144.21        .16282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5097        3.6041        .54017E-03   -1.5670    
   8  Prefactor     .27062E-06    18.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .32752E-08    5.4918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .53757E-06    12.055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .95346E-06    14.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .75956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .74111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        .91268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6549        1.2299        .42225E-03   -1.5660    
  16  Prefactor     32.152        28.499        .17409E-03   -1.5595    
  17  norm          2.6116        1.5845        .63112E-03   -1.5676    
  18  Prefactor     4.9342        17.092        .49999E-03   -1.5664    
  19  Prefactor     2.6054        2.4765        .63177E-03   -1.5676    
  20  norm          .11102E-09    3.6628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .32807E-07    9.6581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91004        .16283        .45034E-01   -.96108    
  23  Prefactor     .97209        .15429        .45924E-01   -.93666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1949e-07
Minuit parameter uncertainties:
  1  2.04795e-06
  2  1.52906e-05
  3  2.07809
  4  11.1297
  5  2.09169
  6  0.000799035
  7  3.6041
  8  0.00453286
  9  0.000268098
  10  0.00509115
  11  0.00742062
  12  6.32893e-07
  13  2.53882e-06
  14  2.23483e-06
  15  1.22987
  16  28.4987
  17  1.58454
  18  17.0924
  19  2.47652
  20  4.40367e-05
  21  0.00112605
  22  0.162915
  23  0.154357
Done.

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

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  1.110e-09  7.990e-04  0.000e+00  1.000e+06 ( 1.000e-15)
266        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.862e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.721e-01  1.544e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  9.100e-01  1.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 51.219 -20.729
Photon Flux Upper Limit: 5.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12664/likelihoodResults_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.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) = 5883.14469854
delta logL = -0.00330836048761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5882.86099198
delta logL = 0.280398194873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2581       1.0000          .0000       .10000E+07
     2 'Index     '    3.2923       1.0000          .0000       10.000    
     3 'Normalizat'    .87677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98513       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   5882.861     FROM MIGRAD    STATUS=FAILED        82 CALLS      267 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2595        429.53        .19521E-04    .15432E-01
   2  Index         3.2925        6.6354        .41785E-02    .87746E-03
   3  Normalizat    .87674        .17213        .25466E-03    .87321E-03
   4  Prefactor     .98522        .16074        .22720E-03    .72036E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5882.861     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      357 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2595        429.53        .26957E-04    .15432E-01
   2  Index         3.2925        6.6354        .96716E-03    .87746E-03
   3  Normalizat    .87674        .17213        .13067E-03    .87321E-03
   4  Prefactor     .98522        .16074        .61623E-04    .72036E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5882.861     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      388 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2610        18.546        .78086E-06    .11274E-02
   2  Index         3.2924        1.2673        .16714E-03    .35234E-04
   3  Normalizat    .87674        .18725        .50932E-04    .19062E-04
   4  Prefactor     .98522        .17324        .45441E-04    .26020E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26097
  Index      = 3.29241
  Normalizat = 0.876736
  Prefactor  = 0.985217
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.861     FROM HESSE     STATUS=OK            23 CALLS      411 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2610        17.600        .37352E-06   -1.5667    
   2  Index         3.2924        1.2352        .66856E-05   -.34853    
   3  Normalizat    .87674        .18727        .10186E-04   -.97282    
   4  Prefactor     .98522        .17325        .90881E-05   -.93224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11762e-11
Minuit parameter uncertainties:
  1  17.3199
  2  1.24984
  3  0.187409
  4  0.17335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12664': 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) = 5882.86099151
delta logL = 0.280398668903

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  4.261e+00  1.732e+01  0.000e+00  1.000e+06 ( 1.000e-15)
266        Index:  3.292e+00  1.250e+00  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  3.862e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.852e-01  1.734e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  8.767e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 51.219 -20.729

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/12664/cmap_HighResolution_683078401_683337601_4FGL_J0324.8-2043_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='5.08e-08', time_completed='2022-09-16 10:58:46.017837', job_id='12664', GAL2='0.99', fit_tolerance='1e-08', EG2='0.88', EG='0.91', time_epoch_completed='1663351126.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.80e-01', ts2='0.58', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1712' AND source_name='4FGL J0324.8-2043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:58:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 12664: <4FGL_J0324.8-2043_daily_bin1712> in cluster <slac> Done

Job <4FGL_J0324.8-2043_daily_bin1712> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep 16 10:45:24 2022
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:45:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:45:58 2022
Terminated at Fri Sep 16 10:58:46 2022
Results reported at Fri Sep 16 10:58:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0324.8-2043_daily_bin1712 51.2191 -20.7285 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0324.8-2043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            802 sec.

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

