/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 5 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.2+4535_daily_bin421
RA = 357.305, Dec = 45.5979
tmin = 348451201, tmax = 348710401
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='142038', job_status='RUN', time_executed='2021-09-30 06:10:38.631847', time_epoch_executed='1633007438.63' WHERE source_name='4FGL J2349.2+4535' and cadence='daily' and bin_id='421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/142038

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/142038/ft1_4FGL_J2349.2+4535_daily_bin421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/142038/ft2_4FGL_J2349.2+4535_daily_bin421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/142038/ft1_4FGL_J2349.2+4535_daily_bin421.fits outfile=/scratch/kocevski/142038/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin421.fits ra=357.305 dec=45.5979 rad=12.0 tmin=348451201.0 tmax=348710401.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.43
user 3.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/142038/ft2_4FGL_J2349.2+4535_daily_bin421.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/142038/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin421.fits evtable="EVENTS" outfile="/scratch/kocevski/142038/ft1_filtered_4FGL_J2349.2+4535_daily_bin421.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/142038/ft1_filtered_4FGL_J2349.2+4535_daily_bin421.fits" evtable="EVENTS" scfile=/scratch/kocevski/142038/ft2_4FGL_J2349.2+4535_daily_bin421.fits sctable="SC_DATA" outfile=/scratch/kocevski/142038/ltcube_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.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/142038/ft2_4FGL_J2349.2+4535_daily_bin421.fits
.....................!
real 12.07
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/142038/ft1_filtered_4FGL_J2349.2+4535_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/142038/ft2_4FGL_J2349.2+4535_daily_bin421.fits sctable="SC_DATA" expcube=/scratch/kocevski/142038/ltcube_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.fits outfile=/scratch/kocevski/142038/expmap_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.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/142038/ltcube_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.fits
.....................!
real 190.12
user 184.91
sys 4.90

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/142038/ft1_filtered_4FGL_J2349.2+4535_daily_bin421.fits scfile=/scratch/kocevski/142038/ft2_4FGL_J2349.2+4535_daily_bin421.fits outfile=/scratch/kocevski/142038/cmap_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/142038/ft1_filtered_4FGL_J2349.2+4535_daily_bin421.fits scfile=/scratch/kocevski/142038/ft2_4FGL_J2349.2+4535_daily_bin421.fits outfile=/scratch/kocevski/142038/cmap_HighResolution_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/142038/ft1_filtered_4FGL_J2349.2+4535_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/142038/ft2_4FGL_J2349.2+4535_daily_bin421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/142038/Model_4FGL_J2349.2+4535_daily_bin421.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/142038/ft1_filtered_4FGL_J2349.2+4535_daily_bin421.fits.....................!
real 134.32
user 132.89
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/142038/ft1_filtered_4FGL_J2349.2+4535_daily_bin421.fits', '/scratch/kocevski/142038/ft2_4FGL_J2349.2+4535_daily_bin421.fits', expMap='/scratch/kocevski/142038/expmap_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.fits', expCube='/scratch/kocevski/142038/ltcube_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/142038/Model_4FGL_J2349.2+4535_daily_bin421.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/142038/ft1_filtered_4FGL_J2349.2+4535_daily_bin421.fits
Spacecraft file(s): /scratch/kocevski/142038/ft2_4FGL_J2349.2+4535_daily_bin421.fits
Exposure map: /scratch/kocevski/142038/expmap_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.fits
Exposure cube: /scratch/kocevski/142038/ltcube_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/142038/Model_4FGL_J2349.2+4535_daily_bin421.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) = 11298.6173637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2610       1.0000         .10000E-03   10000.    
     3 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .41761E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7937       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7321       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32788E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.8789       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.286       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63010       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94996       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=   11298.53     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2235 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.001       -.34073E-06** at limit **
   2  Prefactor     7.2708        17.170       -.78042E-06   -.24597E-04
   3  norm          .10000E-03    7.0345        .19741E-05** at limit **
   4  Prefactor     .10000E-03    1.9521        .50299E-06** at limit **
   5  norm          .42773E-01    .78143        .13205E-06   -.21059E-04
   6  Prefactor     3.7950        3.0539       -.30167E-07   -.94052E-05
   7  Prefactor     7.7238        10.964        .44377E-06   -.42575E-05
   8  Prefactor     .10000E-03    15.762       -.15888E-08** at limit **
   9  Prefactor     .10000E-03    10.408        .64291E-06** at limit **
  10  Prefactor     .10000E-03    1.8375        .33107E-07** at limit **
  11  Prefactor     .10000E-03    8.7959       -.21129E-06** at limit **
  12  Prefactor     .10000E-03    16.303        .56162E-06** at limit **
  13  norm          .10000E-03    4.4796        .52170E-06** at limit **
  14  norm          .10001E-03    1.0898        .43338E-06** at limit **
  15  Prefactor     .10000E-03    8.4456       -.23889E-06** at limit **
  16  norm          6.8790        6.7321        .21910E-05   -.13988E-03
  17  Prefactor     .10000E-03    10.599        .57073E-06** at limit **
  18  Prefactor     30.202        45.840       -.86693E-06    .37645E-04
  19  Prefactor     .63496        13.981        .58971E-05   -.24553E-05
  20  Normalizat    1.1960        .20149       -.41755E-05   -.14373E-03
  21  Prefactor     .95002        .62481E-01    .16052E-06   -.85600E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.27079
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0427734
  Prefactor  = 3.79498
  Prefactor  = 7.72383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100009
  Prefactor  = 0.0001
  norm       = 6.87902
  Prefactor  = 0.0001
  Prefactor  = 30.2022
  Prefactor  = 0.634961
  Normalizat = 1.19597
  Prefactor  = 0.950024
 **********
 **   18 **HESSE 
 **********

 FCN=   11298.53     FROM HESSE     STATUS=OK           319 CALLS     2554 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.2708        17.167        .14885E-03   -1.5169    
   3  norm          .10000E-03    7.0599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9592        .14508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .42773E-01    10.969        .18223E-02   -1.5667    
   6  Prefactor     3.7950        3.0507        .15704E-03   -1.5318    
   7  Prefactor     7.7238        10.949        .14421E-03   -1.5152    
   8  Prefactor     .10000E-03    15.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8432        .14072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.7965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.859        .43581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    13.653        .21256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.8790        6.7071        .76486E-03   -1.5183    
  17  Prefactor     .10000E-03    10.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.202        47.132        .72805E-04   -1.4608    
  19  Prefactor     .63496        14.929        .39195E-02   -1.5549    
  20  Normalizat    1.1960        .21532        .40018E-03   -.86727    
  21  Prefactor     .95002        .68279E-01    .14388E-03   -.94414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64347e-07
Minuit parameter uncertainties:
  1  3.02166e-05
  2  17.1786
  3  1.49387e-06
  4  2.92065e-06
  5  1.36862
  6  3.05085
  7  10.9518
  8  4.31305e-05
  9  1.91119e-05
  10  3.14467e-06
  11  1.70842e-06
  12  0.00012546
  13  0.000238752
  14  0.0006906
  15  7.6018e-06
  16  6.70779
  17  1.7218e-05
  18  47.1898
  19  6.15889
  20  0.215482
  21  0.068285
Done.

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

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.000e-04  1.722e-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:  9.500e-01  6.828e-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:  1.196e+00  2.155e-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: 3.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/142038/likelihoodResults_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.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) = 11298.5298777
delta logL = -0.000445137911811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11298.5294325
delta logL = 7.48477759771e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1450       1.0000          .0000       10.000    
     3 'Normalizat'    1.1960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95003       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11298.53     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      255 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10256E-03    6.0001        .18142E-01** at limit **
   2  Index         2.0698        8.9542        .50000        .20269E-04
   3  Normalizat    1.1960        .39121E-02    .40017E-03   -.84091E-05
   4  Prefactor     .95002        .12793E-02    .14388E-03   -.28446E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102556
  Index      = 2.06975
  Normalizat = 1.19597
  Prefactor  = 0.950025
 **********
 **   18 **HESSE 
 **********

 FCN=   11298.53     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10256E-03    44.872        .36112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0698        5.1129        .50000       -.62617    
   3  Normalizat    1.1960        .10737E-01    .16007E-04   -.86727    
   4  Prefactor     .95002        .35114E-02    .57550E-05   -.94414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.54839e-09
Minuit parameter uncertainties:
  1  0.0214344
  2  185.612
  3  0.0107374
  4  0.00351136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/142038': 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) = 11298.5294321
delta logL = 4.78459696751e-07

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.026e-04  2.143e-02  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.070e+00  1.856e+02  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:  9.500e-01  3.511e-03  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:  1.196e+00  1.074e-02  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/142038/cmap_HighResolution_348451201_348710401_4FGL_J2349.2+4535_daily_bin421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-03', job_status='DONE', photon_flux_upper_limit='3.77e-08', time_completed='2021-09-30 06:26:55.455215', job_id='142038', GAL2='0.95', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1633008415.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='421' AND source_name='4FGL J2349.2+4535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:26:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 142038: <4FGL_J2349.2+4535_daily_bin421> in cluster <slac> Done

Job <4FGL_J2349.2+4535_daily_bin421> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:10:23 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:10:25 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:10:25 2021
Terminated at Thu Sep 30 06:26:56 2021
Results reported at Thu Sep 30 06:26:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_daily_bin421 357.305 45.5979 348451201 348710401 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 :                                   972.24 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             360.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

