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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin856
RA = 357.356, Dec = 5.579
tmin = 461203201, tmax = 461462401
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='153325', job_status='RUN', time_executed='2021-09-30 06:53:51.625974', time_epoch_executed='1633010031.63' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153325/ft1_4FGL_J2349.4+0534_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153325/ft2_4FGL_J2349.4+0534_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153325/ft1_4FGL_J2349.4+0534_daily_bin856.fits outfile=/scratch/kocevski/153325/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin856.fits ra=357.356 dec=5.579 rad=12.0 tmin=461203201.0 tmax=461462401.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.42
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153325/ft2_4FGL_J2349.4+0534_daily_bin856.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/153325/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin856.fits evtable="EVENTS" outfile="/scratch/kocevski/153325/ft1_filtered_4FGL_J2349.4+0534_daily_bin856.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153325/ft1_filtered_4FGL_J2349.4+0534_daily_bin856.fits" evtable="EVENTS" scfile=/scratch/kocevski/153325/ft2_4FGL_J2349.4+0534_daily_bin856.fits sctable="SC_DATA" outfile=/scratch/kocevski/153325/ltcube_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.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/153325/ft2_4FGL_J2349.4+0534_daily_bin856.fits
.....................!
real 11.67
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153325/ft1_filtered_4FGL_J2349.4+0534_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/153325/ft2_4FGL_J2349.4+0534_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/153325/ltcube_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.fits outfile=/scratch/kocevski/153325/expmap_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.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/153325/ltcube_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.fits
.....................!
real 190.76
user 185.59
sys 4.81

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/153325/ft1_filtered_4FGL_J2349.4+0534_daily_bin856.fits scfile=/scratch/kocevski/153325/ft2_4FGL_J2349.4+0534_daily_bin856.fits outfile=/scratch/kocevski/153325/cmap_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153325/ft1_filtered_4FGL_J2349.4+0534_daily_bin856.fits scfile=/scratch/kocevski/153325/ft2_4FGL_J2349.4+0534_daily_bin856.fits outfile=/scratch/kocevski/153325/cmap_HighResolution_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.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.58
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153325/ft1_filtered_4FGL_J2349.4+0534_daily_bin856.fits', '/scratch/kocevski/153325/ft2_4FGL_J2349.4+0534_daily_bin856.fits', expMap='/scratch/kocevski/153325/expmap_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.fits', expCube='/scratch/kocevski/153325/ltcube_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153325/Model_4FGL_J2349.4+0534_daily_bin856.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/153325/ft1_filtered_4FGL_J2349.4+0534_daily_bin856.fits
Spacecraft file(s): /scratch/kocevski/153325/ft2_4FGL_J2349.4+0534_daily_bin856.fits
Exposure map: /scratch/kocevski/153325/expmap_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.fits
Exposure cube: /scratch/kocevski/153325/ltcube_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153325/Model_4FGL_J2349.4+0534_daily_bin856.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) = 7232.70580996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11697E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3447       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.654       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.656       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2445       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10886E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.2923       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9331       1.0000         .10000E-03   10000.    
    13 'Prefactor '    108.65       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.8074       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8230       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .73080E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85553       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84452       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=   7232.626     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2604 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.261        .12370E-06** at limit **
   2  norm          1.3438        1.9834       -.46806E-06   -.96812E-03
   3  norm          2.2149        2.1734       -.87254E-08    .77072E-04
   4  Prefactor     8.0781        10.288       -.90802E-07   -.95518E-04
   5  Prefactor     14.646        30.678       -.51437E-05    .98731E-04
   6  Prefactor     .10000E-03    4.1702       -.48367E-06** at limit **
   7  Prefactor     28.660        17.947       -.41834E-06    .38967E-04
   8  norm          1.2445        .72314       -.77284E-07   -.16943E-03
   9  Prefactor     10.732        10.562        .84011E-06   -.19090E-03
  10  Prefactor     .10000E-03    31.030       -.43200E-06** at limit **
  11  norm          7.2919        8.6729        .71425E-06   -.17753E-03
  12  Prefactor     3.9404        8.3498       -.18709E-05   -.21825E-03
  13  Prefactor     108.66        105.32        .76286E-05   -.10204E-03
  14  Prefactor     .10000E-03    2.2085       -.62053E-07** at limit **
  15  Prefactor     .10000E-03    6.5555       -.30479E-06** at limit **
  16  norm          5.8144        14.140       -.20988E-05    .27216E-04
  17  norm          .10000E-03    4.1636       -.48558E-06** at limit **
  18  Prefactor     .10000E-03    2.4745       -.36099E-06** at limit **
  19  Prefactor     .10000E-03    20.830       -.69828E-07** at limit **
  20  Prefactor     7.8347        19.498       -.39372E-05    .75814E-04
  21  Prefactor     .10003E-03    6.7746       -.55820E-06** at limit **
  22  Normalizat    .85573        .17652        .13740E-05    .72138E-04
  23  Prefactor     .84419        .11748        .46486E-06    .83844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.34383
  norm       = 2.21493
  Prefactor  = 8.07814
  Prefactor  = 14.646
  Prefactor  = 0.0001
  Prefactor  = 28.6597
  norm       = 1.24452
  Prefactor  = 10.7318
  Prefactor  = 0.0001
  norm       = 7.29188
  Prefactor  = 3.94043
  Prefactor  = 108.655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.8144
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.83475
  Prefactor  = 0.000100028
  Normalizat = 0.855735
  Prefactor  = 0.844185
 **********
 **   18 **HESSE 
 **********

 FCN=   7232.626     FROM HESSE     STATUS=OK           382 CALLS     2986 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3438        2.0338        .14048E-03   -1.5476    
   3  norm          2.2149        2.1751        .11993E-03   -1.5410    
   4  Prefactor     8.0781        10.320        .14110E-03   -1.5139    
   5  Prefactor     14.646        30.543        .10463E-03   -1.4942    
   6  Prefactor     .10000E-03    4.1732        .16955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.660        17.965        .74841E-04   -1.4637    
   8  norm          1.2445        .71505        .53253E-04   -1.5485    
   9  Prefactor     10.732        10.492        .12230E-03   -1.5053    
  10  Prefactor     .10000E-03    31.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.2919        8.5629        .14853E-03   -1.5168    
  12  Prefactor     3.9404        8.4759        .20341E-03   -1.5311    
  13  Prefactor     108.66        103.73        .19293E-03   -1.3619    
  14  Prefactor     .10000E-03    2.2137        .12342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.8144        14.175        .16666E-03   -1.5226    
  17  norm          .10000E-03    4.1646        .16947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5971        .26148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.8347        19.566        .14336E-03   -1.5148    
  21  Prefactor     .10003E-03    11.306        .71330E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .85573        .20732        .27765E-03   -.98033    
  23  Prefactor     .84419        .13756        .19653E-03   -.98120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77859e-10
Minuit parameter uncertainties:
  1  2.76012e-05
  2  2.03394
  3  2.17518
  4  10.3221
  5  30.5754
  6  1.34632e-05
  7  17.9684
  8  0.715058
  9  10.4942
  10  3.18594e-06
  11  8.5643
  12  8.47843
  13  103.909
  14  4.69763e-06
  15  1.01069e-05
  16  14.1829
  17  8.67153e-06
  18  2.10628e-05
  19  3.50813e-06
  20  19.5823
  21  0.00111564
  22  0.207517
  23  0.13762
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  7.835e+00  1.958e+01  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:  8.442e-01  1.376e-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:  8.557e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153325/likelihoodResults_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7232.38280891
delta logL = 0.242716293984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7232.37958732
delta logL = 0.245937881714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8333       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3231       1.0000          .0000       10.000    
     3 'Normalizat'    .86487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84205       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=   7232.379     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      211 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3912        11.850        .35817E-02   -.39600E-04
   2  Index         1.3033        .50358        .32219       -.78315E-04
   3  Normalizat    .86479        .16325        .44451E-01    .36946E-04
   4  Prefactor     .84227        .11562        .44262E-01    .24237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.39122
  Index      = 1.30328
  Normalizat = 0.864788
  Prefactor  = 0.842267
 **********
 **   18 **HESSE 
 **********

 FCN=   7232.379     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3912        17.831        .14327E-03   -1.5164    
   2  Index         1.3033        .98285        .12461E-01   -.83210    
   3  Normalizat    .86479        .18970        .27619E-03   -.97709    
   4  Prefactor     .84227        .13458        .19667E-03   -.98189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13896e-08
Minuit parameter uncertainties:
  1  17.8438
  2  0.99737
  3  0.189844
  4  0.134637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153325': 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) = 7232.37936565
delta logL = 0.246159550201

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  7.391e+00  1.784e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.303e+00  9.974e-01  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:  8.423e-01  1.346e-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:  8.648e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 357.356 5.579

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/153325/cmap_HighResolution_461203201_461462401_4FGL_J2349.4+0534_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-30 07:05:28.512920', job_id='153325', GAL2='0.84', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1633010728.51', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.46e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='856' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:05:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 153325: <4FGL_J2349.4+0534_daily_bin856> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin856> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:22 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:23 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:23 2021
Terminated at Thu Sep 30 07:05:29 2021
Results reported at Thu Sep 30 07:05:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin856 357.356 5.579 461203201 461462401 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 :                                   693.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

