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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin960
RA = 357.356, Dec = 5.579
tmin = 488160001, tmax = 488419201
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='153477', job_status='RUN', time_executed='2021-09-30 06:54:30.377836', time_epoch_executed='1633010070.38' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153477

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153477/ft1_4FGL_J2349.4+0534_daily_bin960.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153477/ft1_4FGL_J2349.4+0534_daily_bin960.fits outfile=/scratch/kocevski/153477/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin960.fits ra=357.356 dec=5.579 rad=12.0 tmin=488160001.0 tmax=488419201.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 5.32
user 5.05
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.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/153477/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin960.fits evtable="EVENTS" outfile="/scratch/kocevski/153477/ft1_filtered_4FGL_J2349.4+0534_daily_bin960.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153477/ft1_filtered_4FGL_J2349.4+0534_daily_bin960.fits" evtable="EVENTS" scfile=/scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits sctable="SC_DATA" outfile=/scratch/kocevski/153477/ltcube_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.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/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits
.....................!
real 12.45
user 12.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153477/ft1_filtered_4FGL_J2349.4+0534_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/153477/ltcube_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.fits outfile=/scratch/kocevski/153477/expmap_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.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/153477/ltcube_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.fits
.....................!
real 192.53
user 186.53
sys 5.64

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

Setting source of interest to:
4FGL J2349.4+0534 @ 357.356 5.579

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/153477/ft1_filtered_4FGL_J2349.4+0534_daily_bin960.fits scfile=/scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits outfile=/scratch/kocevski/153477/cmap_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.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=357.356 yref=5.579 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153477/ft1_filtered_4FGL_J2349.4+0534_daily_bin960.fits scfile=/scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits outfile=/scratch/kocevski/153477/cmap_HighResolution_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.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=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/153477/ft1_filtered_4FGL_J2349.4+0534_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153477/Model_4FGL_J2349.4+0534_daily_bin960.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/153477/ft1_filtered_4FGL_J2349.4+0534_daily_bin960.fits.....................!
real 57.52
user 55.88
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153477/ft1_filtered_4FGL_J2349.4+0534_daily_bin960.fits', '/scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits', expMap='/scratch/kocevski/153477/expmap_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.fits', expCube='/scratch/kocevski/153477/ltcube_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153477/Model_4FGL_J2349.4+0534_daily_bin960.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.4+0534'

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.639e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/153477/ft1_filtered_4FGL_J2349.4+0534_daily_bin960.fits
Spacecraft file(s): /scratch/kocevski/153477/ft2_4FGL_J2349.4+0534_daily_bin960.fits
Exposure map: /scratch/kocevski/153477/expmap_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.fits
Exposure cube: /scratch/kocevski/153477/ltcube_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153477/Model_4FGL_J2349.4+0534_daily_bin960.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) = 4882.63751942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.77       1.0000         .10000E-03   10000.    
     2 'norm      '    4.7582       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.072       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.496       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.442       1.0000         .10000E-03   10000.    
     8 'norm      '    .54690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.824       1.0000         .10000E-03   10000.    
    11 'norm      '    9.8069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5144       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11197E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14960E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14350E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28786       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50194E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32342E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5926       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69449       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4882.510     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2546 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.80        34.381        .86185E-05    .57970E-04
   2  norm          4.7607        4.1119       -.21369E-05   -.26115E-03
   3  norm          5.5753        5.4657       -.11935E-05   -.10689E-03
   4  Prefactor     14.075        14.964        .62304E-06   -.95746E-05
   5  Prefactor     38.501        44.675        .51657E-05    .75188E-07
   6  Prefactor     .10000E-03    10.513        .43693E-06** at limit **
   7  Prefactor     23.443        23.030       -.24065E-05   -.20490E-05
   8  norm          .54734        .68501       -.86806E-07   -.87083E-03
   9  Prefactor     .10000E-03    6.4408       -.53878E-06** at limit **
  10  Prefactor     51.901        50.217        .65594E-04    .37038E-04
  11  norm          9.8055        10.127       -.77824E-06   -.20848E-04
  12  Prefactor     9.5144        10.432        .37022E-06   -.60199E-04
  13  Prefactor     .10000E-03    103.03        .20591E-04** at limit **
  14  Prefactor     .10000E-03    4.4678        .11453E-06** at limit **
  15  Prefactor     .10000E-03    30.956        .26652E-05** at limit **
  16  norm          .10000E-03    53.142       -.40782E-05** at limit **
  17  norm          .10000E-03    8.0047       -.60631E-06** at limit **
  18  Prefactor     .29537        2.4895       -.15545E-05    .17216E-03
  19  Prefactor     .10000E-03    54.413       -.18475E-04** at limit **
  20  Prefactor     .10000E-03    109.41        .11506E-04** at limit **
  21  Prefactor     3.5986        13.554        .14385E-05   -.60547E-04
  22  Normalizat    .69406        .25923       -.10444E-04    .20279E-03
  23  Prefactor     1.1110        .17034        .15607E-05   -.21389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.797
  norm       = 4.76069
  norm       = 5.57527
  Prefactor  = 14.075
  Prefactor  = 38.501
  Prefactor  = 0.0001
  Prefactor  = 23.4426
  norm       = 0.547345
  Prefactor  = 0.0001
  Prefactor  = 51.9013
  norm       = 9.80554
  Prefactor  = 9.51438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.295369
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.59859
  Normalizat = 0.694059
  Prefactor  = 1.11102
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.510     FROM HESSE     STATUS=OK           372 CALLS     2918 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.80        34.323        .38218E-04   -1.3599    
   2  norm          4.7607        4.0951        .11307E-03   -1.5272    
   3  norm          5.5753        5.4588        .15396E-03   -1.5236    
   4  Prefactor     14.075        14.962        .10677E-03   -1.4957    
   5  Prefactor     38.501        44.680        .64600E-04   -1.4466    
   6  Prefactor     .10000E-03    10.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.443        23.038        .82732E-04   -1.4739    
   8  norm          .54734        .63553        .62814E-03   -1.5560    
   9  Prefactor     .10000E-03    6.4689        .17315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     51.901        50.203        .27856E-03   -1.4266    
  11  norm          9.8055        10.106        .12796E-03   -1.5082    
  12  Prefactor     9.5144        10.412        .12992E-03   -1.5091    
  13  Prefactor     .10000E-03    103.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4742        .14417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    54.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.0075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29537        11.100        .20697E-02   -1.5599    
  19  Prefactor     .10000E-03    54.846        .21156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    112.66        .42716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5986        13.532        .21319E-03   -1.5329    
  22  Normalizat    .69406        .29184        .35606E-03   -1.0413    
  23  Prefactor     1.1110        .19356        .20317E-03   -.89115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39261e-10
Minuit parameter uncertainties:
  1  34.3295
  2  4.0953
  3  5.45929
  4  14.9663
  5  44.719
  6  2.12354e-05
  7  23.0465
  8  0.635534
  9  8.37213e-06
  10  50.244
  11  10.1074
  12  10.4141
  13  5.11908e-06
  14  3.62985e-05
  15  3.91483e-05
  16  0.00044107
  17  1.3329e-05
  18  3.62144
  19  0.000569951
  20  0.000215653
  21  13.5438
  22  0.292491
  23  0.193681
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.157e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.111e+00  1.937e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  6.941e-01  2.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153477/likelihoodResults_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.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) = 4882.50981401
delta logL = -4.22049615736e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4882.50977163
delta logL = 1.73669832293e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6362       1.0000          .0000       10.000    
     3 'Normalizat'    .69405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4882.510     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      263 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    .39766        .10408    ** at limit **
   2  Index         2.7107        8.5720        .50000       -.21698E-05
   3  Normalizat    .69405        .82620E-03    .80414E-01   -.16605E-03
   4  Prefactor     1.1110        .58719E-03    .37182E-01   -.22662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100062
  Index      = 2.71069
  Normalizat = 0.694051
  Prefactor  = 1.11102
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.510     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      298 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    129.25        .61286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7107        7.5184        .50000       -.47559    
   3  Normalizat    .69405        .44321E-02    .35607E-03   -1.0413    
   4  Prefactor     1.1110        .31574E-02    .20317E-03   -.89115    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11084e-09
Minuit parameter uncertainties:
  1  0.00565782
  2  107.018
  3  0.0044321
  4  0.00315738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153477': 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) = 4882.50977157
delta logL = 2.32164893532e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.001e-04  5.658e-03  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.711e+00  1.070e+02  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.111e+00  3.157e-03  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  6.941e-01  4.432e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

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/153477/cmap_HighResolution_488160001_488419201_4FGL_J2349.4+0534_daily_bin960.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-30 07:04:23.452896', job_id='153477', GAL2='1.11', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1633010663.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='960' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:04:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 153477: <4FGL_J2349.4+0534_daily_bin960> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin960> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:33 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 06:50:34 2021
Terminated at Thu Sep 30 07:04:24 2021
Results reported at Thu Sep 30 07:04:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin960 357.356 5.579 488160001 488419201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.4+0534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

