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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1518
RA = 56.3187, Dec = -23.885
tmin = 632793601, tmax = 633052801
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='943970', job_status='RUN', time_executed='2021-08-19 11:03:45.746591', time_epoch_executed='1629396225.75' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943970/ft1_4FGL_J0345.2-2353_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943970/ft2_4FGL_J0345.2-2353_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943970/ft1_4FGL_J0345.2-2353_daily_bin1518.fits outfile=/scratch/kocevski/943970/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1518.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=632793601.0 tmax=633052801.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.22
user 3.36
sys 0.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/943970/ft2_4FGL_J0345.2-2353_daily_bin1518.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/943970/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1518.fits evtable="EVENTS" outfile="/scratch/kocevski/943970/ft1_filtered_4FGL_J0345.2-2353_daily_bin1518.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.11
user 0.33
sys 0.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943970/ft1_filtered_4FGL_J0345.2-2353_daily_bin1518.fits" evtable="EVENTS" scfile=/scratch/kocevski/943970/ft2_4FGL_J0345.2-2353_daily_bin1518.fits sctable="SC_DATA" outfile=/scratch/kocevski/943970/ltcube_632793601_633052801_4FGL_J0345.2-2353_daily_bin1518.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/943970/ft2_4FGL_J0345.2-2353_daily_bin1518.fits
.....................!
real 12.22
user 11.14
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943970/ft1_filtered_4FGL_J0345.2-2353_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/943970/ft2_4FGL_J0345.2-2353_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/943970/ltcube_632793601_633052801_4FGL_J0345.2-2353_daily_bin1518.fits outfile=/scratch/kocevski/943970/expmap_632793601_633052801_4FGL_J0345.2-2353_daily_bin1518.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/943970/ltcube_632793601_633052801_4FGL_J0345.2-2353_daily_bin1518.fits
.....................!
real 192.19
user 186.18
sys 5.62

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/943970/ft1_filtered_4FGL_J0345.2-2353_daily_bin1518.fits scfile=/scratch/kocevski/943970/ft2_4FGL_J0345.2-2353_daily_bin1518.fits outfile=/scratch/kocevski/943970/cmap_632793601_633052801_4FGL_J0345.2-2353_daily_bin1518.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.14
user 0.38
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943970/ft1_filtered_4FGL_J0345.2-2353_daily_bin1518.fits scfile=/scratch/kocevski/943970/ft2_4FGL_J0345.2-2353_daily_bin1518.fits outfile=/scratch/kocevski/943970/cmap_HighResolution_632793601_633052801_4FGL_J0345.2-2353_daily_bin1518.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.15
user 0.38
sys 0.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/943970/ft1_filtered_4FGL_J0345.2-2353_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/943970/ft2_4FGL_J0345.2-2353_daily_bin1518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/943970/Model_4FGL_J0345.2-2353_daily_bin1518.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/943970/ft1_filtered_4FGL_J0345.2-2353_daily_bin1518.fits.....................!
real 129.92
user 127.61
sys 2.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.916       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2480       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.846       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.5635       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0407       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.440       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8987       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7288       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1691       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .54634E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1748       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80660       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=   5794.215     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2673 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.920        17.669       -.12635E-05   -.23933E-04
   2  norm          3.2484        2.7396        .44353E-07    .32119E-04
   3  Prefactor     .10000E-03    115.29       -.97154E-05** at limit **
   4  Prefactor     .10000E-03    3.4261        .37807E-07** at limit **
   5  Prefactor     15.851        21.454       -.64381E-06   -.26454E-04
   6  Prefactor     .10000E-03    22.616       -.21457E-05** at limit **
   7  Prefactor     .10000E-03    25.317       -.10200E-05** at limit **
   8  Prefactor     .10000E-03    21.423        .29013E-05** at limit **
   9  Prefactor     4.1127        2.2475        .27684E-07   -.24880E-04
  10  Prefactor     .10000E-03    2.3976        .58369E-08** at limit **
  11  Prefactor     .10000E-03    1.2440        .61813E-08** at limit **
  12  norm          7.5641        1.6182       -.47915E-07   -.62263E-04
  13  Prefactor     9.0416        9.8673        .68922E-06    .60619E-03
  14  norm          .10000E-03    .50029        .49225E-08** at limit **
  15  Prefactor     66.456        102.59        .18105E-04   -.62508E-06
  16  Prefactor     .10000E-03    6.7747        .92033E-08** at limit **
  17  Prefactor     7.9002        3.4302        .44200E-07   -.89644E-04
  18  norm          .10000E-03    5.0998        .20296E-08** at limit **
  19  Prefactor     .10000E-03    15.368       -.20797E-06** at limit **
  20  Prefactor     1.7289        3.5648       -.92752E-06   -.41180E-03
  21  Prefactor     1.1643        3.9276       -.16261E-05   -.12571E-02
  22  Prefactor     .10001E-03    114.53        .43360E-04** at limit **
  23  Normalizat    1.1744        .19037       -.62353E-06   -.20932E-03
  24  Prefactor     .80679        .17020        .24902E-06   -.22059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9199
  norm       = 3.24838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.11267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.56411
  Prefactor  = 9.04164
  norm       = 0.0001
  Prefactor  = 66.4558
  Prefactor  = 0.0001
  Prefactor  = 7.90017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.72889
  Prefactor  = 1.16425
  Prefactor  = 0.000100006
  Normalizat = 1.17443
  Prefactor  = 0.806789
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.215     FROM HESSE     STATUS=OK           393 CALLS     3066 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.920        17.700        .11146E-03   -1.4989    
   2  norm          3.2484        2.7415        .11243E-03   -1.5347    
   3  Prefactor     .10000E-03    115.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4717        .13726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.851        21.469        .10062E-03   -1.4911    
   6  Prefactor     .10000E-03    22.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1127        2.2450        .81321E-04   -1.5302    
  10  Prefactor     .10000E-03    2.4374        .11495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2493        .82877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.5641        1.6265        .42189E-04   -1.5158    
  13  Prefactor     9.0416        9.9474        .66649E-03   -1.5106    
  14  norm          .10000E-03    .50998        .52481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     66.456        101.85        .49239E-04   -1.4076    
  16  Prefactor     .10000E-03    6.7872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.9002        3.4276        .88181E-04   -1.5146    
  18  norm          .10000E-03    5.1073        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7289        3.5442        .20221E-03   -1.5445    
  21  Prefactor     1.1643        4.0485        .26859E-03   -1.5492    
  22  Prefactor     .10001E-03    112.90        .42226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1744        .22036        .24650E-03   -.87397    
  24  Prefactor     .80679        .19552        .27229E-03   -.99479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69146e-09
Minuit parameter uncertainties:
  1  17.707
  2  2.74161
  3  2.17297e-05
  4  7.42434e-06
  5  21.4794
  6  1.01242e-05
  7  4.87387e-06
  8  5.49789e-06
  9  2.24507
  10  2.09918e-06
  11  7.37555e-07
  12  1.62646
  13  9.94924
  14  5.22334e-07
  15  102.115
  16  1.7646e-06
  17  3.42769
  18  3.55594e-07
  19  5.03823e-06
  20  3.5446
  21  4.04943
  22  0.00170226
  23  0.220538
  24  0.19569
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  7.376e-07  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:  8.068e-01  1.957e-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.174e+00  2.205e-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: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/943970/likelihoodResults_632793601_633052801_4FGL_J0345.2-2353_daily_bin1518.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) = 5794.21865071
delta logL = -0.00369194037103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5794.21495883
delta logL = -6.07878973824e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4473       1.0000          .0000       10.000    
     3 'Normalizat'    1.1744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80682       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=   5794.215     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4975        .90712E-02** at limit **
   2  Index         2.4489        6.2196        .50000       -.12070E-04
   3  Normalizat    1.1744        .17980        .55745E-01    .11310E-04
   4  Prefactor     .80679        .16866        .43806E-01    .27231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44895
  Normalizat = 1.17443
  Prefactor  = 0.80679
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.215     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9579        .82884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4489        6.1660        .50000       -.53543    
   3  Normalizat    1.1744        .20590        .24650E-03   -.87397    
   4  Prefactor     .80679        .19321        .27229E-03   -.99479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05127e-10
Minuit parameter uncertainties:
  1  3.53337e-06
  2  5.38422
  3  0.206046
  4  0.19337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943970': 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) = 5794.21495876
delta logL = 8.76298145158e-09

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  3.533e-06  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.449e+00  5.384e+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:  8.068e-01  1.934e-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.174e+00  2.060e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/943970/cmap_HighResolution_632793601_633052801_4FGL_J0345.2-2353_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-08-19 11:15:33.049693', job_id='943970', GAL2='0.81', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1629396933.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.76e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1518' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 11:15:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 943970: <4FGL_J0345.2-2353_daily_bin1518> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1518> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 11:00:41 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 11:00:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 11:00:42 2021
Terminated at Thu Aug 19 11:15:33 2021
Results reported at Thu Aug 19 11:15:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1518 56.3187 -23.885 632793601 633052801 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 :                                   711.42 sec.
    Max Memory :                                 1195 MB
    Average Memory :                             297.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

