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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1221
RA = 357.356, Dec = 5.579
tmin = 555811201, tmax = 556070401
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='154873', job_status='RUN', time_executed='2021-09-30 06:59:10.837050', time_epoch_executed='1633010350.84' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154873/ft1_4FGL_J2349.4+0534_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154873/ft2_4FGL_J2349.4+0534_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154873/ft1_4FGL_J2349.4+0534_daily_bin1221.fits outfile=/scratch/kocevski/154873/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1221.fits ra=357.356 dec=5.579 rad=12.0 tmin=555811201.0 tmax=556070401.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.59
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154873/ft2_4FGL_J2349.4+0534_daily_bin1221.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/154873/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1221.fits evtable="EVENTS" outfile="/scratch/kocevski/154873/ft1_filtered_4FGL_J2349.4+0534_daily_bin1221.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/154873/ft1_filtered_4FGL_J2349.4+0534_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/154873/ft2_4FGL_J2349.4+0534_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/154873/ltcube_555811201_556070401_4FGL_J2349.4+0534_daily_bin1221.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/154873/ft2_4FGL_J2349.4+0534_daily_bin1221.fits
.....................!
real 11.84
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154873/ft1_filtered_4FGL_J2349.4+0534_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/154873/ft2_4FGL_J2349.4+0534_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/154873/ltcube_555811201_556070401_4FGL_J2349.4+0534_daily_bin1221.fits outfile=/scratch/kocevski/154873/expmap_555811201_556070401_4FGL_J2349.4+0534_daily_bin1221.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/154873/ltcube_555811201_556070401_4FGL_J2349.4+0534_daily_bin1221.fits
.....................!
real 190.16
user 185.21
sys 4.62

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/154873/ft1_filtered_4FGL_J2349.4+0534_daily_bin1221.fits scfile=/scratch/kocevski/154873/ft2_4FGL_J2349.4+0534_daily_bin1221.fits outfile=/scratch/kocevski/154873/cmap_555811201_556070401_4FGL_J2349.4+0534_daily_bin1221.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154873/ft1_filtered_4FGL_J2349.4+0534_daily_bin1221.fits scfile=/scratch/kocevski/154873/ft2_4FGL_J2349.4+0534_daily_bin1221.fits outfile=/scratch/kocevski/154873/cmap_HighResolution_555811201_556070401_4FGL_J2349.4+0534_daily_bin1221.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2059       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4005       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11583E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .59451       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9966       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3580       1.0000         .10000E-03   10000.    
    11 'norm      '    .90624       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5558       1.0000         .10000E-03   10000.    
    13 'Prefactor '    165.47       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.659       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6465       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .76628E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79271       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1011       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=   7850.003     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2639 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.395       -.10669E-06** at limit **
   2  norm          2.2062        3.1590       -.35071E-06   -.90069E-03
   3  norm          3.4008        3.4247       -.24118E-06   -.38004E-03
   4  Prefactor     .10002E-03    7.6731        .42141E-06** at limit **
   5  Prefactor     .10000E-03    13.976        .13110E-06** at limit **
   6  Prefactor     .10000E-03    2.5835       -.86837E-07** at limit **
   7  Prefactor     .10000E-03    6.9051        .22600E-06** at limit **
   8  norm          .59502        .80047        .34832E-06    .10164E-02
   9  Prefactor     6.9850        8.4910       -.81286E-06   -.17473E-03
  10  Prefactor     9.3071        43.697       -.15490E-04   -.11485E-04
  11  norm          .92337        4.5318        .31016E-06   -.50371E-03
  12  Prefactor     7.5417        6.8568       -.56533E-06   -.32577E-03
  13  Prefactor     165.39        226.23       -.60659E-04   -.24420E-05
  14  Prefactor     33.655        17.591        .49680E-05   -.19107E-04
  15  Prefactor     .10000E-03    13.906        .86178E-07** at limit **
  16  norm          .10000E-03    5.2495        .82865E-07** at limit **
  17  norm          .10000E-03    18.183       -.60119E-06** at limit **
  18  Prefactor     2.6479        4.7023       -.48331E-06   -.62536E-03
  19  Prefactor     .10000E-03    49.983       -.12892E-05** at limit **
  20  Prefactor     .10003E-03    15.419       -.56914E-06** at limit **
  21  Prefactor     .10000E-03    10.068       -.28854E-06** at limit **
  22  Normalizat    .79276        .18849        .62600E-07   -.12079E-04
  23  Prefactor     1.1011        .12218        .60049E-06   -.30173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.20621
  norm       = 3.40085
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.595022
  Prefactor  = 6.98496
  Prefactor  = 9.30711
  norm       = 0.923374
  Prefactor  = 7.54175
  Prefactor  = 165.389
  Prefactor  = 33.6548
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.6479
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Normalizat = 0.792756
  Prefactor  = 1.1011
 **********
 **   18 **HESSE 
 **********

 FCN=   7850.003     FROM HESSE     STATUS=OK           384 CALLS     3023 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2062        3.1430        .17636E-03   -1.5411    
   3  norm          3.4008        3.3755        .15653E-03   -1.5339    
   4  Prefactor     .10002E-03    64.477        .45620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5885        .13908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .59502        .68233        .87519E-03   -1.5554    
   9  Prefactor     6.9850        8.3992        .15167E-03   -1.5179    
  10  Prefactor     9.3071        43.805        .13101E-03   -1.5098    
  11  norm          .92337        12.404        .29732E-02   -1.5516    
  12  Prefactor     7.5417        6.6877        .14590E-03   -1.5159    
  13  Prefactor     165.39        223.68        .15678E-03   -1.3129    
  14  Prefactor     33.655        17.446        .69070E-04   -1.4547    
  15  Prefactor     .10000E-03    14.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6479        4.6423        .21871E-03   -1.5383    
  19  Prefactor     .10000E-03    50.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    19.763        .95212E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79276        .21214        .32374E-03   -1.0034    
  23  Prefactor     1.1011        .13995        .19333E-03   -.89431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82432e-09
Minuit parameter uncertainties:
  1  1.92769e-05
  2  3.14325
  3  3.37564
  4  0.0023338
  5  2.97163e-06
  6  2.06986e-07
  7  3.363e-07
  8  0.682342
  9  8.40062
  10  40.4312
  11  6.76996
  12  6.68841
  13  224.845
  14  17.4484
  15  5.77248e-06
  16  1.6596e-06
  17  4.25776e-05
  18  4.64293
  19  4.36289e-05
  20  0.00151502
  21  8.97145e-06
  22  0.212357
  23  0.139999
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.101e+00  1.400e-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:  7.928e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154873/likelihoodResults_555811201_556070401_4FGL_J2349.4+0534_daily_bin1221.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) = 7850.00300651
delta logL = -1.36285480039e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7850.00300651
delta logL = -1.36204916998e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4667       1.0000          .0000       10.000    
     3 'Normalizat'    .79275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1011       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=   7849.743     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      307 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34893        7.7528        .90712E-02    .20968E-02
   2  Index         4.6736        2.9662        .14094        .15264E-03
   3  Normalizat    .74185        .33111E-01    .75446E-01    .86318E-05
   4  Prefactor     1.1200        .23058E-01    .37545E-01    .56657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.348926
  Index      = 4.6736
  Normalizat = 0.741848
  Prefactor  = 1.12
 **********
 **   18 **HESSE 
 **********

 FCN=   7849.743     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      338 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34893        31.459        .69246E-04   -1.5590    
   2  Index         4.6736        7.1959        .79157E-02   -.65326E-01
   3  Normalizat    .74185        .15789        .33395E-03   -1.0226    
   4  Prefactor     1.1200        .10807        .19190E-03   -.88830    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55692e-06
Minuit parameter uncertainties:
  1  6.62892
  2  9.19452
  3  0.157985
  4  0.108089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154873': 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) = 7849.74325275
delta logL = 0.259740134723

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.120e+00  1.081e-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:  7.418e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/154873/cmap_HighResolution_555811201_556070401_4FGL_J2349.4+0534_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-09-30 07:11:33.944887', job_id='154873', GAL2='1.12', fit_tolerance='1e-08', EG2='0.74', EG='0.79', time_epoch_completed='1633011093.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.60e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1221' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:11:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 154873: <4FGL_J2349.4+0534_daily_bin1221> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1221> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:55:11 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:55:13 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:55:13 2021
Terminated at Thu Sep 30 07:11:34 2021
Results reported at Thu Sep 30 07:11:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1221 357.356 5.579 555811201 556070401 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            983 sec.

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

