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


Performing analysis on: 4FGL_J2349.2+4535_daily_bin1426
RA = 357.305, Dec = 45.5979
tmin = 608947201, tmax = 609206401
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='147594', job_status='RUN', time_executed='2021-09-30 06:30:49.974557', time_epoch_executed='1633008649.97' WHERE source_name='4FGL J2349.2+4535' and cadence='daily' and bin_id='1426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147594

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147594/ft1_4FGL_J2349.2+4535_daily_bin1426.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147594/ft1_4FGL_J2349.2+4535_daily_bin1426.fits outfile=/scratch/kocevski/147594/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1426.fits ra=357.305 dec=45.5979 rad=12.0 tmin=608947201.0 tmax=609206401.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.37
user 2.92
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.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/147594/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1426.fits evtable="EVENTS" outfile="/scratch/kocevski/147594/ft1_filtered_4FGL_J2349.2+4535_daily_bin1426.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147594/ft1_filtered_4FGL_J2349.2+4535_daily_bin1426.fits" evtable="EVENTS" scfile=/scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits sctable="SC_DATA" outfile=/scratch/kocevski/147594/ltcube_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.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/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits
.....................!
real 14.21
user 13.73
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147594/ft1_filtered_4FGL_J2349.2+4535_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits sctable="SC_DATA" expcube=/scratch/kocevski/147594/ltcube_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.fits outfile=/scratch/kocevski/147594/expmap_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.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/147594/ltcube_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.fits
.....................!
real 192.69
user 187.32
sys 5.05

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 180 point sources and 2 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 J2349.2+4535 @ 357.305 45.5979

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/147594/ft1_filtered_4FGL_J2349.2+4535_daily_bin1426.fits scfile=/scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits outfile=/scratch/kocevski/147594/cmap_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.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.305 yref=45.5979 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/147594/ft1_filtered_4FGL_J2349.2+4535_daily_bin1426.fits scfile=/scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits outfile=/scratch/kocevski/147594/cmap_HighResolution_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.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.305 yref=45.5979 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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147594/ft1_filtered_4FGL_J2349.2+4535_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147594/Model_4FGL_J2349.2+4535_daily_bin1426.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/147594/ft1_filtered_4FGL_J2349.2+4535_daily_bin1426.fits.....................!
real 128.09
user 126.68
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147594/ft1_filtered_4FGL_J2349.2+4535_daily_bin1426.fits', '/scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits', expMap='/scratch/kocevski/147594/expmap_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.fits', expCube='/scratch/kocevski/147594/ltcube_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147594/Model_4FGL_J2349.2+4535_daily_bin1426.xml', optimizer='MINUIT')

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

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  5.568e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/147594/ft1_filtered_4FGL_J2349.2+4535_daily_bin1426.fits
Spacecraft file(s): /scratch/kocevski/147594/ft2_4FGL_J2349.2+4535_daily_bin1426.fits
Exposure map: /scratch/kocevski/147594/expmap_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.fits
Exposure cube: /scratch/kocevski/147594/ltcube_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147594/Model_4FGL_J2349.2+4535_daily_bin1426.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) = 9935.10369478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.048       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.658       1.0000         .10000E-03   10000.    
     3 'norm      '    20.241       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56004       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.754       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.733       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9815       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.688       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71882E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .84988       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0650       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9935.098     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2229 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.042        33.986       -.95220E-06   -.60530E-04
   2  Prefactor     23.652        31.040       -.12703E-05   -.10192E-03
   3  norm          20.274        26.548        .20239E-05    .18310E-03
   4  Prefactor     .10005E-03    9.1667        .39277E-06** at limit **
   5  norm          .10000E-03    1.0925       -.16754E-07** at limit **
   6  Prefactor     .55777        3.5834        .26677E-05   -.20627E-03
   7  Prefactor     .10000E-03    7.6578       -.11161E-06** at limit **
   8  Prefactor     28.747        44.870       -.31673E-05   -.80660E-04
   9  Prefactor     .10000E-03    81.323       -.14515E-05** at limit **
  10  Prefactor     .10000E-03    3.4648        .20541E-06** at limit **
  11  Prefactor     .10000E-03    18.311       -.35112E-06** at limit **
  12  Prefactor     10.730        12.414        .35397E-06   -.28778E-04
  13  norm          .10000E-03    5.7170        .33958E-06** at limit **
  14  norm          1.9813        2.0114        .79235E-07   -.19853E-04
  15  Prefactor     36.682        32.472       -.12212E-05   -.85641E-04
  16  norm          .10000E-03    3.1771       -.12300E-06** at limit **
  17  Prefactor     .10000E-03    21.699        .89780E-06** at limit **
  18  Prefactor     .10000E-03    78.319        .42838E-05** at limit **
  19  Prefactor     .10010E-03    6.4783        .42769E-06** at limit **
  20  Normalizat    .85027        .26675       -.35553E-05   -.10165E-03
  21  Prefactor     1.0649        .70369E-01    .30388E-06   -.42775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0417
  Prefactor  = 23.6521
  norm       = 20.2745
  Prefactor  = 0.000100048
  norm       = 0.0001
  Prefactor  = 0.557773
  Prefactor  = 0.0001
  Prefactor  = 28.7473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7299
  norm       = 0.0001
  norm       = 1.98132
  Prefactor  = 36.6824
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100103
  Normalizat = 0.850268
  Prefactor  = 1.06494
 **********
 **   18 **HESSE 
 **********

 FCN=   9935.098     FROM HESSE     STATUS=OK           315 CALLS     2544 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.042        33.976        .83436E-04   -1.4748    
   2  Prefactor     23.652        31.201        .82354E-04   -1.4735    
   3  norm          20.274        26.924        .89025E-04   -1.4807    
   4  Prefactor     .10005E-03    40.226        .52391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5138        .20273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55777        3.9792        .37986E-03   -1.5559    
   7  Prefactor     .10000E-03    7.6643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.747        45.176        .74714E-04   -1.4635    
   9  Prefactor     .10000E-03    81.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4881        .18124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.730        12.429        .12229E-03   -1.5053    
  13  norm          .10000E-03    5.7385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9813        1.9984        .13789E-03   -1.5426    
  15  Prefactor     36.682        32.577        .66166E-04   -1.4496    
  16  norm          .10000E-03    3.1794        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    78.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10010E-03    56.814        .45052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .85027        .28403        .52277E-03   -.98230    
  21  Prefactor     1.0649        .76092E-01    .13804E-03   -.90595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38507e-09
Minuit parameter uncertainties:
  1  34.0049
  2  31.2224
  3  26.9398
  4  0.00277605
  5  3.19017e-05
  6  2.9796
  7  2.67142e-06
  8  45.2303
  9  0.000163487
  10  9.75854e-06
  11  1.88183e-05
  12  12.4315
  13  1.70749e-05
  14  1.99852
  15  32.5931
  16  2.26201e-06
  17  8.5353e-05
  18  0.000456304
  19  0.00485359
  20  0.284526
  21  0.0760992
Done.

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

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.000e-04  8.535e-05  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.065e+00  7.610e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  8.503e-01  2.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.305 45.598
Photon Flux Upper Limit: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147594/likelihoodResults_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.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) = 9935.09819733
delta logL = -0.00021914696481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9935.09797818
delta logL = 2.18278728426e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9935.098     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.105       -.14391E-04** at limit **
   2  Index         2.1486        6.0687       -.38480E-04    .51179E-05
   3  Normalizat    .85027        .23257       -.27497E-05   -.14677E-04
   4  Prefactor     1.0649        .68464E-01    .38930E-06   -.91667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.14863
  Normalizat = 0.850268
  Prefactor  = 1.06494
 **********
 **   18 **HESSE 
 **********

 FCN=   9935.098     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7082.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1486        6.1541        .50000       -.60684    
   3  Normalizat    .85027        .17665        .52277E-03   -.98230    
   4  Prefactor     1.0649        .52204E-01    .13804E-03   -.90595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.31974e-10
Minuit parameter uncertainties:
  1  0.00447143
  2  61.5773
  3  0.176768
  4  0.0522069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147594': 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) = 9935.09797814
delta logL = 3.50810296368e-08

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.000e-04  4.471e-03  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.149e+00  6.158e+01  0.000e+00  1.000e+01 (-1.000e+00)
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.065e+00  5.221e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  8.503e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.305 45.598

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/147594/cmap_HighResolution_608947201_609206401_4FGL_J2349.2+4535_daily_bin1426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-30 06:45:57.088648', job_id='147594', GAL2='1.06', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1633009557.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1426' AND source_name='4FGL J2349.2+4535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:45:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 147594: <4FGL_J2349.2+4535_daily_bin1426> in cluster <slac> Done

Job <4FGL_J2349.2+4535_daily_bin1426> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:30:32 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:30: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:30:34 2021
Terminated at Thu Sep 30 06:45:57 2021
Results reported at Thu Sep 30 06:45:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_daily_bin1426 357.305 45.5979 608947201 609206401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.2+4535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   893.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             330.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

