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


Performing analysis on: 4FGL_J2349.2+4535_daily_bin1241
RA = 357.305, Dec = 45.5979
tmin = 560995201, tmax = 561254401
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='146720', job_status='RUN', time_executed='2021-09-30 06:27:49.060825', time_epoch_executed='1633008469.06' WHERE source_name='4FGL J2349.2+4535' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146720

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146720/ft1_4FGL_J2349.2+4535_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146720/ft2_4FGL_J2349.2+4535_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146720/ft1_4FGL_J2349.2+4535_daily_bin1241.fits outfile=/scratch/kocevski/146720/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1241.fits ra=357.305 dec=45.5979 rad=12.0 tmin=560995201.0 tmax=561254401.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.74
user 3.52
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146720/ft2_4FGL_J2349.2+4535_daily_bin1241.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/146720/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1241.fits evtable="EVENTS" outfile="/scratch/kocevski/146720/ft1_filtered_4FGL_J2349.2+4535_daily_bin1241.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146720/ft1_filtered_4FGL_J2349.2+4535_daily_bin1241.fits" evtable="EVENTS" scfile=/scratch/kocevski/146720/ft2_4FGL_J2349.2+4535_daily_bin1241.fits sctable="SC_DATA" outfile=/scratch/kocevski/146720/ltcube_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.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/146720/ft2_4FGL_J2349.2+4535_daily_bin1241.fits
.....................!
real 11.71
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146720/ft1_filtered_4FGL_J2349.2+4535_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/146720/ft2_4FGL_J2349.2+4535_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/146720/ltcube_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.fits outfile=/scratch/kocevski/146720/expmap_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.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/146720/ltcube_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.fits
.....................!
real 191.35
user 186.85
sys 4.20

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/146720/ft1_filtered_4FGL_J2349.2+4535_daily_bin1241.fits scfile=/scratch/kocevski/146720/ft2_4FGL_J2349.2+4535_daily_bin1241.fits outfile=/scratch/kocevski/146720/cmap_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146720/ft1_filtered_4FGL_J2349.2+4535_daily_bin1241.fits scfile=/scratch/kocevski/146720/ft2_4FGL_J2349.2+4535_daily_bin1241.fits outfile=/scratch/kocevski/146720/cmap_HighResolution_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/146720/ft1_filtered_4FGL_J2349.2+4535_daily_bin1241.fits', '/scratch/kocevski/146720/ft2_4FGL_J2349.2+4535_daily_bin1241.fits', expMap='/scratch/kocevski/146720/expmap_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.fits', expCube='/scratch/kocevski/146720/ltcube_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/146720/Model_4FGL_J2349.2+4535_daily_bin1241.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/146720/ft1_filtered_4FGL_J2349.2+4535_daily_bin1241.fits
Spacecraft file(s): /scratch/kocevski/146720/ft2_4FGL_J2349.2+4535_daily_bin1241.fits
Exposure map: /scratch/kocevski/146720/expmap_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.fits
Exposure cube: /scratch/kocevski/146720/ltcube_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/146720/Model_4FGL_J2349.2+4535_daily_bin1241.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 736.796237992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 732.239414946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69013E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.144       1.0000         .10000E-03   10000.    
     3 'norm      '    .12835E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    88.943       1.0000         .10000E-03   10000.    
     5 'norm      '    .79509E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5602       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .65557E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12898E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35993E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18040E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16536E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .13880E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24065E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    7.2729       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7606       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7083       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12275E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1612       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   732.1867     FROM MIGRAD    STATUS=CONVERGED    301 CALLS      660 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    220.44        .93613E-02** at limit **
   2  Prefactor     117.36        340.11        .28738E-02    .12971E-03
   3  norm          .10000E-03    39.905        .10295E-01** at limit **
   4  Prefactor     88.740        40.586        .10651E-02    .17390E-03
   5  norm          .10000E-03    53.196        .92438E-02** at limit **
   6  Prefactor     7.9611        16.261        .34252E-02    .12011E-01
   7  Prefactor     .10000E-03    104.79        .94020E-02** at limit **
   8  Prefactor     37.400        91.304        .16111E-02    .34538E-03
   9  Prefactor     .10000E-03    64.126        .90874E-02** at limit **
  10  Prefactor     .10000E-03    30.615        .10656E-01** at limit **
  11  Prefactor     .10000E-03    64.203        .10160E-01** at limit **
  12  Prefactor     .10000E-03    32.968        .91055E-02** at limit **
  13  norm          .10000E-03    33.116        .90923E-02** at limit **
  14  norm          .10000E-03    7.1449        .90712E-02** at limit **
  15  Prefactor     .10000E-03    85.467        .91427E-02** at limit **
  16  norm          7.2729        1.0024         .0000         .0000    
  17  Prefactor     .10001E-03    .37209E-01    .13108E-04** at limit **
  18  Prefactor     .10000E-03    .16168       -.63587E-07** at limit **
  19  Prefactor     .10000E-03    .20571       -.11371E-05** at limit **
  20  Normalizat    .10000E-01    .25505       -.36662E-05** at limit **
  21  Prefactor     1.1483        1.1118       -.37865E-05    .11186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 117.363
  norm       = 0.0001
  Prefactor  = 88.7399
  norm       = 0.0001
  Prefactor  = 7.96114
  Prefactor  = 0.0001
  Prefactor  = 37.4
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.27294
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.14828
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   732.1867     FROM HESSE     STATUS=FAILED        41 CALLS      701 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    220.44        .93613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     117.36        340.11        .28738E-02   -1.3537    
   3  norm          .10000E-03    39.905        .10295E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     88.740        40.586        .10651E-02   -1.3821    
   5  norm          .10000E-03    53.196        .92438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9611        16.261        .34252E-02   -1.5144    
   7  Prefactor     .10000E-03    104.79        .94020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.400        91.304        .16111E-02   -1.4484    
   9  Prefactor     .10000E-03    64.126        .90874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.615        .10656E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    64.203        .10160E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.968        .91055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    33.116        .90923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.1449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    85.467        .91427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          511.02        503.71         .0000       -1.5169    
  17  Prefactor     .10001E-03    .37209E-01    .13108E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .16168       -.63587E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571       -.11371E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    .25505       -.36662E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1483        1.1118       -.37865E-05   -.87938    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.90844e-12
Minuit parameter uncertainties:
  1  0.000248193
  2  346.037
  3  3.04925e-05
  4  40.5985
  5  3.33385e-05
  6  16.2704
  7  8.40476e-06
  8  91.6478
  9  2.11264e-05
  10  2.34252e-05
  11  6.50279e-05
  12  1.13069e-05
  13  3.53682e-06
  14  5.24386e-07
  15  6.57543e-05
  16  1.00238
  17  4.69934e-05
  18  4.86549e-07
  19  4.65169e-06
  20  1.37675e-07
  21  1.13563
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 732.186712374

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.000e-04  4.699e-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.148e+00  1.136e+00  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.000e-02  1.377e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.305 45.598
Photon Flux Upper Limit: 1.36e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146720/likelihoodResults_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.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) = 732.18671405
delta logL = -1.67604650869e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 732.186713718
delta logL = -1.34386152695e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96343E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1762       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1483       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=   732.1867     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      233 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10154E-03    439.12        .18143E-01** at limit **
   2  Index         2.2393        8.1123        .50000        .57225E-06
   3  Normalizat    .10000E-01    .10999E-03    .84315E-02** at limit **
   4  Prefactor     1.1483        .38358E-02    .16209E-03   -.55810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101541
  Index      = 2.23927
  Normalizat = 0.01
  Prefactor  = 1.14828
 **********
 **   18 **HESSE 
 **********

 FCN=   732.1867     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10154E-03    2052.1        .36286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2393        7.2271        .50000       -.58494    
   3  Normalizat    .10000E-01    .54377E-03    .16863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1483        .85278E-02    .32418E-04   -.87938    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.47673e-10
Minuit parameter uncertainties:
  1  0.116731
  2  336.63
  3  6.2233e-09
  4  0.0085278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146720': 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) = 732.186712382
delta logL = -7.74844011175e-09

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.015e-04  1.167e-01  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.239e+00  3.366e+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:  1.148e+00  8.528e-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.000e-02  6.223e-09  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/146720/cmap_HighResolution_560995201_561254401_4FGL_J2349.2+4535_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-01', job_status='DONE', photon_flux_upper_limit='1.36e-06', time_completed='2021-09-30 06:35:47.090401', job_id='146720', GAL2='1.15', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633008947.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.15', dlogl='-7.75e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1241' AND source_name='4FGL J2349.2+4535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:35:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 146720: <4FGL_J2349.2+4535_daily_bin1241> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_daily_bin1241 357.305 45.5979 560995201 561254401 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 :                                   336.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             206.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            600 sec.

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

