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


Performing analysis on: 4FGL_J2345.2-1555_daily_bin1031
RA = 356.303, Dec = -15.9182
tmin = 506563201, tmax = 506822401
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='101183', job_status='RUN', time_executed='2021-09-30 04:02:35.727431', time_epoch_executed='1632999755.73' WHERE source_name='4FGL J2345.2-1555' and cadence='daily' and bin_id='1031'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101183/ft1_4FGL_J2345.2-1555_daily_bin1031.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101183/ft1_4FGL_J2345.2-1555_daily_bin1031.fits outfile=/scratch/kocevski/101183/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1031.fits ra=356.303 dec=-15.9182 rad=12.0 tmin=506563201.0 tmax=506822401.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.36
user 3.15
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.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/101183/ft1_filteredMKT_4FGL_J2345.2-1555_daily_bin1031.fits evtable="EVENTS" outfile="/scratch/kocevski/101183/ft1_filtered_4FGL_J2345.2-1555_daily_bin1031.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101183/ft1_filtered_4FGL_J2345.2-1555_daily_bin1031.fits" evtable="EVENTS" scfile=/scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits sctable="SC_DATA" outfile=/scratch/kocevski/101183/ltcube_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.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/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits
.....................!
real 12.04
user 11.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101183/ft1_filtered_4FGL_J2345.2-1555_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits sctable="SC_DATA" expcube=/scratch/kocevski/101183/ltcube_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.fits outfile=/scratch/kocevski/101183/expmap_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.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/101183/ltcube_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.fits
.....................!
real 190.44
user 185.32
sys 4.79

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
Added 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2345.2-1555 @ 356.303 -15.9182

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/101183/ft1_filtered_4FGL_J2345.2-1555_daily_bin1031.fits scfile=/scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits outfile=/scratch/kocevski/101183/cmap_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.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=356.303 yref=-15.9182 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101183/ft1_filtered_4FGL_J2345.2-1555_daily_bin1031.fits scfile=/scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits outfile=/scratch/kocevski/101183/cmap_HighResolution_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.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=356.303 yref=-15.9182 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101183/ft1_filtered_4FGL_J2345.2-1555_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101183/Model_4FGL_J2345.2-1555_daily_bin1031.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 GAL_V02
Working on...
/scratch/kocevski/101183/ft1_filtered_4FGL_J2345.2-1555_daily_bin1031.fits.....................!
real 57.87
user 56.56
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/101183/ft1_filtered_4FGL_J2345.2-1555_daily_bin1031.fits', '/scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits', expMap='/scratch/kocevski/101183/expmap_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.fits', expCube='/scratch/kocevski/101183/ltcube_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/101183/Model_4FGL_J2345.2-1555_daily_bin1031.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2345.2-1555'

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  1.857e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.034e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/101183/ft1_filtered_4FGL_J2345.2-1555_daily_bin1031.fits
Spacecraft file(s): /scratch/kocevski/101183/ft2_4FGL_J2345.2-1555_daily_bin1031.fits
Exposure map: /scratch/kocevski/101183/expmap_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.fits
Exposure cube: /scratch/kocevski/101183/ltcube_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/101183/Model_4FGL_J2345.2-1555_daily_bin1031.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) = 7413.92782011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5404       1.0000         .10000E-03   10000.    
     2 'norm      '    20.242       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.514       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.912       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9062       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0424       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0629       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.176       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14888E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .65760       1.0000         .10000E-03   10000.    
    18 'norm      '    .47197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7911       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95765       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7413.915     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2161 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5412        4.8544        .48527E-06    .69618E-04
   2  norm          20.284        28.310       -.47422E-05    .42887E-05
   3  Prefactor     .10000E-03    18.731       -.76878E-06** at limit **
   4  Prefactor     .10000E-03    7.6182       -.19947E-06** at limit **
   5  Prefactor     .10000E-03    9.3080        .35023E-06** at limit **
   6  Prefactor     36.508        15.053       -.23256E-06   -.16871E-04
   7  Prefactor     54.857        47.980       -.92326E-05   -.64152E-04
   8  Prefactor     .10000E-03    16.250        .14487E-05** at limit **
   9  Prefactor     1.9153        12.992        .34031E-04   -.10518E-03
  10  norm          5.0342        4.4739       -.35629E-05   -.33669E-03
  11  norm          3.0635        2.0647        .91533E-07   -.75389E-05
  12  Prefactor     .10000E-03    12.316       -.10340E-05** at limit **
  13  Prefactor     16.173        11.510       -.78109E-07   -.70620E-04
  14  Prefactor     .10000E-03    9.8822        .82158E-07** at limit **
  15  Prefactor     .10000E-03    8.9948        .78492E-07** at limit **
  16  Prefactor     .10000E-03    91.737       -.23410E-05** at limit **
  17  norm          .65754        .39896       -.15785E-06   -.21253E-02
  18  norm          .47208        3.3792        .31707E-05    .50239E-03
  19  Prefactor     3.7960        5.3189       -.25917E-06   -.44627E-04
  20  Normalizat    .95748        .14670       -.40797E-06   -.25335E-03
  21  Prefactor     .92063        .14317       -.11840E-05   -.13362E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.54118
  norm       = 20.2841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.5082
  Prefactor  = 54.8567
  Prefactor  = 0.0001
  Prefactor  = 1.91528
  norm       = 5.03419
  norm       = 3.06352
  Prefactor  = 0.0001
  Prefactor  = 16.1734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.657541
  norm       = 0.472084
  Prefactor  = 3.79603
  Normalizat = 0.957477
  Prefactor  = 0.92063
 **********
 **   18 **HESSE 
 **********

 FCN=   7413.915     FROM HESSE     STATUS=OK           317 CALLS     2478 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5412        4.8508        .17069E-03   -1.5237    
   2  norm          20.284        28.317        .89023E-04   -1.4807    
   3  Prefactor     .10000E-03    18.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.508        15.056        .66323E-04   -1.4499    
   7  Prefactor     54.857        48.532        .54130E-04   -1.4225    
   8  Prefactor     .10000E-03    16.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9153        13.351        .15058E-02   -1.5431    
  10  norm          5.0342        4.4862        .15535E-03   -1.5259    
  11  norm          3.0635        2.0648        .97932E-04   -1.5358    
  12  Prefactor     .10000E-03    12.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.173        11.511        .99581E-04   -1.4903    
  14  Prefactor     .10000E-03    9.8994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    92.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .65754        .39118        .37704E-04   -1.5546    
  18  norm          .47208        3.2450        .27956E-03   -1.5571    
  19  Prefactor     3.7960        5.3070        .20732E-03   -1.5318    
  20  Normalizat    .95748        .17041        .23387E-03   -.94469    
  21  Prefactor     .92063        .16631        .23612E-03   -.95424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02513e-10
Minuit parameter uncertainties:
  1  4.85114
  2  28.3362
  3  5.35961e-06
  4  9.75078e-06
  5  8.04152e-06
  6  15.0578
  7  48.5665
  8  3.81735e-05
  9  10.1164
  10  4.48649
  11  2.06481
  12  1.20318e-05
  13  11.5123
  14  9.54781e-06
  15  3.95171e-05
  16  0.000261693
  17  0.391182
  18  2.47534
  19  5.30761
  20  0.170508
  21  0.166399
Done.

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

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  6.575e-01  3.912e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  2.034e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  9.206e-01  1.664e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  9.575e-01  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.24
Ra Dec: 356.303 -15.918
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.18e-05

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) = 7413.52910923
delta logL = 0.385952008359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7413.51973478
delta logL = 0.395326461548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63712       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5900       1.0000          .0000       5.0000    
     3 'Normalizat'    .97273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91273       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7413.520     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63710        .45352        .88699E-02   -.28942E-04
   2  alpha         1.5900        .47544        .36388       -.30642E-04
   3  Normalizat    .97276        .14353        .45824E-01    .12220E-04
   4  Prefactor     .91271        .14283        .45167E-01    .12350E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.6371
  alpha      = 1.59
  Normalizat = 0.972757
  Prefactor  = 0.912709
 **********
 **   18 **HESSE 
 **********

 FCN=   7413.520     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63710        .40193        .38637E-04   -1.5548    
   2  alpha         1.5900        .47738        .13959E-01   -.37256    
   3  Normalizat    .97276        .16663        .23228E-03   -.93949    
   4  Prefactor     .91271        .16588        .23705E-03   -.95698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03941e-12
Minuit parameter uncertainties:
  1  0.40193
  2  0.48079
  3  0.166714
  4  0.165976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101183': 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) = 7413.51973476
delta logL = 0.395326475725

Extracting fit parameters...

4FGL J2345.2-1555
   Spectrum: LogParabola
477         norm:  6.371e-01  4.019e-01  1.000e-04  1.000e+04 ( 1.000e-11)
478        alpha:  1.590e+00  4.808e-01  0.000e+00  5.000e+00 ( 1.000e+00)
479         beta:  1.029e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
480           Eb:  8.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  9.127e-01  1.660e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  9.728e-01  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.05
Ra Dec: 356.303 -15.918
Photon Index (Free Index): 1.59 +/- 0.48
Photon Flux (Free Index): 2.48e-08 +/- 1.95e-08
Energy Flux (Free Index): 3.14e-05 +/- 2.63e-05

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/101183/cmap_HighResolution_506563201_506822401_4FGL_J2345.2-1555_daily_bin1031.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='3.14e-05', photon_flux_error='2.24e-08', dlogl='3.95e-01', energy_flux='1.99e-05', photon_flux2='2.48e-08', job_status='DONE', time_completed='2021-09-30 04:12:18.436773', photon_index_error2='0.48', photon_index2='1.59', ts='11.24', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='0.96', time_epoch_completed='1633000338.44', return_code='0', job_id='101183', GAL2='0.91', EG2='0.97', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='1.95e-08', ts2='12.05', photon_index='2.03' WHERE bin_id='1031' AND source_name='4FGL J2345.2-1555' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:12:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 101183: <4FGL_J2345.2-1555_daily_bin1031> in cluster <slac> Done

Job <4FGL_J2345.2-1555_daily_bin1031> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 04:00:35 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:00:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 04:00:37 2021
Terminated at Thu Sep 30 04:12:19 2021
Results reported at Thu Sep 30 04:12:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2345.2-1555_daily_bin1031 356.303 -15.9182 506563201 506822401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2345.2-1555 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   580.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            704 sec.

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

