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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1350
RA = 56.3187, Dec = -23.885
tmin = 589248001, tmax = 589507201
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='941094', job_status='RUN', time_executed='2021-08-19 10:52:21.198428', time_epoch_executed='1629395541.2' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/941094

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/941094/ft1_4FGL_J0345.2-2353_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/941094/ft1_4FGL_J0345.2-2353_daily_bin1350.fits outfile=/scratch/kocevski/941094/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1350.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=589248001.0 tmax=589507201.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 3.35
user 2.88
sys 0.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.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/941094/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1350.fits evtable="EVENTS" outfile="/scratch/kocevski/941094/ft1_filtered_4FGL_J0345.2-2353_daily_bin1350.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.71
user 0.32
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/941094/ft1_filtered_4FGL_J0345.2-2353_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/941094/ltcube_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.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/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.fits
.....................!
real 12.45
user 11.82
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/941094/ft1_filtered_4FGL_J0345.2-2353_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/941094/ltcube_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.fits outfile=/scratch/kocevski/941094/expmap_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.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/941094/ltcube_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.fits
.....................!
real 190.82
user 183.68
sys 6.70

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/941094/ft1_filtered_4FGL_J0345.2-2353_daily_bin1350.fits scfile=/scratch/kocevski/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.fits outfile=/scratch/kocevski/941094/cmap_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.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 0.77
user 0.38
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/941094/ft1_filtered_4FGL_J0345.2-2353_daily_bin1350.fits scfile=/scratch/kocevski/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.fits outfile=/scratch/kocevski/941094/cmap_HighResolution_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.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 0.76
user 0.36
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/941094/ft1_filtered_4FGL_J0345.2-2353_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/941094/Model_4FGL_J0345.2-2353_daily_bin1350.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/941094/ft1_filtered_4FGL_J0345.2-2353_daily_bin1350.fits.....................!
real 151.26
user 149.25
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/941094/ft1_filtered_4FGL_J0345.2-2353_daily_bin1350.fits', '/scratch/kocevski/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.fits', expMap='/scratch/kocevski/941094/expmap_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.fits', expCube='/scratch/kocevski/941094/ltcube_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/941094/Model_4FGL_J0345.2-2353_daily_bin1350.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/941094/ft1_filtered_4FGL_J0345.2-2353_daily_bin1350.fits
Spacecraft file(s): /scratch/kocevski/941094/ft2_4FGL_J0345.2-2353_daily_bin1350.fits
Exposure map: /scratch/kocevski/941094/expmap_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.fits
Exposure cube: /scratch/kocevski/941094/ltcube_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/941094/Model_4FGL_J0345.2-2353_daily_bin1350.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) = 6646.20019457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.337       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5312       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .32297E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    27.073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.505       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    192.35       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7475       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89329       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0301       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=   6646.197     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2725 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.338        17.861       -.23083E-07   -.53280E-05
   2  norm          .10000E-03    1.4402        .16354E-07** at limit **
   3  Prefactor     .10000E-03    68.309       -.24518E-04** at limit **
   4  Prefactor     4.5323        5.0743        .41812E-05   -.32549E-03
   5  Prefactor     .10000E-03    11.247       -.11790E-05** at limit **
   6  Prefactor     .10000E-03    15.138        .14008E-05** at limit **
   7  Prefactor     .10000E-03    45.610        .30602E-04** at limit **
   8  Prefactor     .10000E-03    31.150       -.13303E-04** at limit **
   9  Prefactor     2.3090        2.8013       -.20091E-06   -.83313E-04
  10  Prefactor     10.116        7.2949        .17566E-05    .66364E-03
  11  Prefactor     .10001E-03    3.0153       -.11220E-05** at limit **
  12  norm          27.073        2.6386       -.90860E-07    .63956E-03
  13  Prefactor     14.504        19.387        .96523E-07    .11368E-04
  14  norm          .10000E-03    .65949        .37260E-07** at limit **
  15  Prefactor     192.36        122.20        .32034E-05   -.22051E-05
  16  Prefactor     3.9019        20.792       -.47231E-06   -.48824E-04
  17  Prefactor     1.7474        1.6814        .37784E-07    .64340E-04
  18  norm          .10000E-03    3.7473        .52466E-07** at limit **
  19  Prefactor     .10000E-03    18.779        .99025E-06** at limit **
  20  Prefactor     .10000E-03    4.6834       -.25668E-08** at limit **
  21  Prefactor     .10000E-03    1.6436        .36587E-07** at limit **
  22  Prefactor     .10000E-03    6.3901        .23152E-06** at limit **
  23  Normalizat    .89319        .18601       -.70944E-06    .16398E-03
  24  Prefactor     1.0302        .17110       -.76387E-06    .18538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3382
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.30901
  Prefactor  = 10.1156
  Prefactor  = 0.000100014
  norm       = 27.0731
  Prefactor  = 14.5042
  norm       = 0.0001
  Prefactor  = 192.358
  Prefactor  = 3.90187
  Prefactor  = 1.74742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.893187
  Prefactor  = 1.03023
 **********
 **   18 **HESSE 
 **********

 FCN=   6646.197     FROM HESSE     STATUS=OK           393 CALLS     3118 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.338        17.923        .96192E-04   -1.4875    
   2  norm          .10000E-03    1.4490        .95530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    68.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5323        5.0151        .18435E-03   -1.5282    
   5  Prefactor     .10000E-03    11.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3090        2.7201        .13803E-03   -1.5404    
  10  Prefactor     10.116        6.7325        .12595E-03   -1.5072    
  11  Prefactor     .10001E-03    36.472        .23774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          27.073        2.6446        .38158E-04   -1.4667    
  13  Prefactor     14.504        19.349        .10517E-03   -1.4946    
  14  norm          .10000E-03    .68048        .12864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     192.36        122.26        .29123E-04   -1.2925    
  16  Prefactor     3.9019        20.670        .20423E-03   -1.5313    
  17  Prefactor     1.7474        1.6777        .10045E-03   -1.5444    
  18  norm          .10000E-03    3.7486        .15413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.7112        .17227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.6638        .10201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.3929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89319        .21883        .29834E-03   -.96700    
  24  Prefactor     1.0302        .20190        .26558E-03   -.91729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77483e-10
Minuit parameter uncertainties:
  1  17.9283
  2  1.25851e-06
  3  5.42815e-06
  4  5.01558
  5  0.000121642
  6  1.02793e-06
  7  3.70623e-05
  8  1.47832e-06
  9  2.72025
  10  6.73297
  11  0.0014133
  12  2.64461
  13  19.3572
  14  2.97128e-06
  15  122.419
  16  17.9709
  17  1.6777
  18  8.49042e-07
  19  1.29213e-05
  20  6.52018e-06
  21  3.71233e-06
  22  2.61728e-06
  23  0.21905
  24  0.202049
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  1.413e-03  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:  1.030e+00  2.020e-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:  8.932e-01  2.191e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/941094/likelihoodResults_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.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): 102
logL (Free Index) = 6646.19680558
delta logL = -0.000130657012051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6646.19655257
delta logL = 0.000122356610518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33579E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6273       1.0000          .0000       10.000    
     3 'Normalizat'    .89323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0302       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.

 FCN=   6645.773     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      260 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31811        5.4073        .98514E-02    .18447E-02
   2  Index         4.3873        3.3661        .12764        .14294E-03
   3  Normalizat    .82973        .37942E-01    .69511E-01   -.89561E-04
   4  Prefactor     1.0656        .36288E-01    .59126E-01   -.18498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.318113
  Index      = 4.38729
  Normalizat = 0.829729
  Prefactor  = 1.06562
 **********
 **   18 **HESSE 
 **********

 FCN=   6645.773     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31811        19.623        .49453E-04   -1.5595    
   2  Index         4.3873        7.0421        .79264E-02   -.12285    
   3  Normalizat    .82973        .19044        .30756E-03   -.98975    
   4  Prefactor     1.0656        .17842        .26143E-03   -.90573    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21633e-06
Minuit parameter uncertainties:
  1  4.99783
  2  8.92169
  3  0.190595
  4  0.178521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/941094': 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): 102
logL (Free Index) = 6645.7726763
delta logL = 0.423998623995

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  3.181e-01  4.998e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  4.387e+00  8.922e+00  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:  1.066e+00  1.785e-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:  8.297e-01  1.906e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/941094/cmap_HighResolution_589248001_589507201_4FGL_J0345.2-2353_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.88e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-08-19 11:05:06.961119', job_id='941094', GAL2='1.07', fit_tolerance='1e-08', EG2='0.83', EG='0.89', time_epoch_completed='1629396306.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.24e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1350' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 11:05:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 941094: <4FGL_J0345.2-2353_daily_bin1350> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1350> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 10:50:22 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 10:50: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:50:24 2021
Terminated at Thu Aug 19 11:05:07 2021
Results reported at Thu Aug 19 11:05:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1350 56.3187 -23.885 589248001 589507201 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 :                                   763.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

