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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1363
RA = 56.3187, Dec = -23.885
tmin = 592617601, tmax = 592876801
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='942403', job_status='RUN', time_executed='2021-08-19 10:55:53.484262', time_epoch_executed='1629395753.48' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/942403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/942403/ft1_4FGL_J0345.2-2353_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/942403/ft1_4FGL_J0345.2-2353_daily_bin1363.fits outfile=/scratch/kocevski/942403/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1363.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=592617601.0 tmax=592876801.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.04
user 3.24
sys 0.79

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.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/942403/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/942403/ft1_filtered_4FGL_J0345.2-2353_daily_bin1363.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 1.05
user 0.34
sys 0.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/942403/ft1_filtered_4FGL_J0345.2-2353_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/942403/ltcube_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.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/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits
.....................!
real 12.47
user 11.50
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/942403/ft1_filtered_4FGL_J0345.2-2353_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/942403/ltcube_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.fits outfile=/scratch/kocevski/942403/expmap_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.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/942403/ltcube_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.fits
.....................!
real 191.56
user 185.78
sys 5.38

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_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 155 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 J0345.2-2353 @ 56.3187 -23.885

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/942403/ft1_filtered_4FGL_J0345.2-2353_daily_bin1363.fits scfile=/scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits outfile=/scratch/kocevski/942403/cmap_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.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=56.3187 yref=-23.885 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.10
user 0.37
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/942403/ft1_filtered_4FGL_J0345.2-2353_daily_bin1363.fits scfile=/scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits outfile=/scratch/kocevski/942403/cmap_HighResolution_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.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=56.3187 yref=-23.885 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.11
user 0.37
sys 0.73

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/942403/ft1_filtered_4FGL_J0345.2-2353_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/942403/Model_4FGL_J0345.2-2353_daily_bin1363.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/942403/ft1_filtered_4FGL_J0345.2-2353_daily_bin1363.fits.....................!
real 164.40
user 162.05
sys 2.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/942403/ft1_filtered_4FGL_J0345.2-2353_daily_bin1363.fits', '/scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits', expMap='/scratch/kocevski/942403/expmap_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.fits', expCube='/scratch/kocevski/942403/ltcube_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/942403/Model_4FGL_J0345.2-2353_daily_bin1363.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0345.2-2353'

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/942403/ft1_filtered_4FGL_J0345.2-2353_daily_bin1363.fits
Spacecraft file(s): /scratch/kocevski/942403/ft2_4FGL_J0345.2-2353_daily_bin1363.fits
Exposure map: /scratch/kocevski/942403/expmap_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.fits
Exposure cube: /scratch/kocevski/942403/ltcube_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/942403/Model_4FGL_J0345.2-2353_daily_bin1363.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) = 7234.07894847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.996       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9292       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.737       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .91293E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8292       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0037       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.101       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3277       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.209       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4775       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0175       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61608       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7234.004     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2717 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.996        8.8077       -.45437E-08    .23560E-04
   2  norm          1.9293        1.6991       -.45036E-09    .80507E-04
   3  Prefactor     .10000E-03    44.572        .17496E-04** at limit **
   4  Prefactor     .10000E-03    1.5357       -.94470E-07** at limit **
   5  Prefactor     17.742        15.797        .29737E-05    .48111E-05
   6  Prefactor     .10000E-03    27.438       -.38400E-05** at limit **
   7  Prefactor     .10001E-03    108.73       -.12853E-03** at limit **
   8  Prefactor     34.757        34.555       -.25335E-04    .33089E-05
   9  Prefactor     .14757        .89229       -.41860E-07   -.34268E-03
  10  Prefactor     5.8281        3.3425        .95562E-06    .25609E-03
  11  Prefactor     .10000E-03    1.0039       -.23089E-07** at limit **
  12  norm          10.081        1.4080        .36671E-07    .42243E-02
  13  Prefactor     9.0036        16.194        .30142E-05   -.14763E-04
  14  norm          1.4603        1.1203       -.85541E-07   -.36825E-03
  15  Prefactor     .10000E-03    46.086        .18599E-05** at limit **
  16  Prefactor     18.094        15.397       -.86300E-07   -.13826E-04
  17  Prefactor     1.3281        1.4026       -.65634E-07   -.22169E-03
  18  norm          .10000E-03    2.5961       -.11253E-06** at limit **
  19  Prefactor     13.212        16.164       -.87226E-07    .23875E-05
  20  Prefactor     7.4794        7.6675        .14420E-05   -.14219E-03
  21  Prefactor     .10000E-03    1.4160       -.15309E-06** at limit **
  22  Prefactor     .10000E-03    8.2551        .51817E-06** at limit **
  23  Normalizat    1.0175        .14272       -.14576E-05    .67186E-03
  24  Prefactor     .61594        .13333        .29650E-05    .17751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9964
  norm       = 1.92934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7421
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 34.7568
  Prefactor  = 0.14757
  Prefactor  = 5.82811
  Prefactor  = 0.0001
  norm       = 10.0811
  Prefactor  = 9.00364
  norm       = 1.46026
  Prefactor  = 0.0001
  Prefactor  = 18.0943
  Prefactor  = 1.32812
  norm       = 0.0001
  Prefactor  = 13.2117
  Prefactor  = 7.47937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01751
  Prefactor  = 0.615945
 **********
 **   18 **HESSE 
 **********

 FCN=   7234.004     FROM HESSE     STATUS=OK           401 CALLS     3118 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.996        8.8136        .11111E-03   -1.4987    
   2  norm          1.9293        1.7072        .10127E-03   -1.5430    
   3  Prefactor     .10000E-03    44.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5416        .10279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.742        15.771        .95099E-04   -1.4865    
   6  Prefactor     .10000E-03    27.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    109.18        .20821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.757        34.608        .67952E-04   -1.4528    
   9  Prefactor     .14757        3.8617        .14811E-02   -1.5631    
  10  Prefactor     5.8281        3.3396        .11116E-03   -1.5225    
  11  Prefactor     .10000E-03    1.0092        .83102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.081        1.4122        .35564E-04   -1.5073    
  13  Prefactor     9.0036        16.160        .13357E-03   -1.5108    
  14  norm          1.4603        1.1014        .72813E-04   -1.5466    
  15  Prefactor     .10000E-03    46.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.094        15.373        .94139E-04   -1.4857    
  17  Prefactor     1.3281        1.3873        .99572E-04   -1.5477    
  18  norm          .10000E-03    2.5975        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.212        16.159        .11021E-03   -1.4981    
  20  Prefactor     7.4794        7.6607        .14666E-03   -1.5161    
  21  Prefactor     .10000E-03    1.4444        .98764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.2946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0175        .16437        .22208E-03   -.92446    
  24  Prefactor     .61594        .15303        .26610E-03   -1.0692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1375e-09
Minuit parameter uncertainties:
  1  8.81448
  2  1.70722
  3  5.39062e-06
  4  3.0416e-06
  5  15.7743
  6  5.99626e-05
  7  0.00172043
  8  34.628
  9  1.50939
  10  3.33966
  11  3.94711e-06
  12  1.41217
  13  16.1678
  14  1.10143
  15  2.69459e-06
  16  15.376
  17  1.38733
  18  1.22762e-06
  19  16.1638
  20  7.66174
  21  3.09225e-06
  22  5.67459e-06
  23  0.164452
  24  0.153135
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  3.947e-06  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  6.159e-01  1.531e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.018e+00  1.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 56.319 -23.885
Photon Flux Upper Limit: 4.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/942403/likelihoodResults_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.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) = 7234.00913971
delta logL = -0.00467697673957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7234.00446282
delta logL = -9.02200554265e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4462       1.0000          .0000       10.000    
     3 'Normalizat'    1.0175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   7234.004     FROM MIGRAD    STATUS=FAILED        86 CALLS      236 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    128.59        .83101E-03** at limit **
   2  Index         2.4615        5.8777        .50000       -.29118E-05
   3  Normalizat    1.0175        .49703E-01    .22208E-03    .84980E-05
   4  Prefactor     .61595        .47154E-01    .26610E-03    .30248E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7234.004     FROM SIMPLEX   STATUS=UNCHANGED    168 CALLS      404 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    128.59        .16283E-03** at limit **
   2  Index         2.4615        5.8777        .17970E-04   -.29118E-05
   3  Normalizat    1.0175        .49703E-01    .45350E-06    .84980E-05
   4  Prefactor     .61595        .47154E-01    .32741E-06    .30248E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7234.004     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      445 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3837        .16620E-03** at limit **
   2  Index         2.4900        5.7291        .50000       -.20816E-06
   3  Normalizat    1.0175        .15664        .88831E-05    .94706E-05
   4  Prefactor     .61595        .14973        .10644E-04    .17303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48996
  Normalizat = 1.01751
  Prefactor  = 0.615948
 **********
 **   18 **HESSE 
 **********

 FCN=   7234.004     FROM HESSE     STATUS=OK            29 CALLS      474 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0338        .33241E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4900        6.2375        .50000       -.52592    
   3  Normalizat    1.0175        .15680        .17766E-05   -.92446    
   4  Prefactor     .61595        .14990        .21288E-05   -1.0692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4589e-11
Minuit parameter uncertainties:
  1  1.24045e-06
  2  167.877
  3  0.15687
  4  0.150002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/942403': 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) = 7234.00446271
delta logL = 2.19379217015e-08

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  1.240e-06  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.490e+00  1.679e+02  0.000e+00  1.000e+01 (-1.000e+00)
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  6.159e-01  1.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.018e+00  1.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 56.319 -23.885

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/942403/cmap_HighResolution_592617601_592876801_4FGL_J0345.2-2353_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-03', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-08-19 11:09:37.065164', job_id='942403', GAL2='0.62', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1629396577.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1363' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 11:09:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 942403: <4FGL_J0345.2-2353_daily_bin1363> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1363> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 19 10:55:22 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 10:55:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 10:55:24 2021
Terminated at Thu Aug 19 11:09:37 2021
Results reported at Thu Aug 19 11:09:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1363 56.3187 -23.885 592617601 592876801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0345.2-2353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   828.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             410.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

