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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin326
RA = 357.356, Dec = 5.579
tmin = 323827201, tmax = 324086401
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='149432', job_status='RUN', time_executed='2021-09-30 06:38:41.858022', time_epoch_executed='1633009121.86' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149432/ft1_4FGL_J2349.4+0534_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149432/ft2_4FGL_J2349.4+0534_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149432/ft1_4FGL_J2349.4+0534_daily_bin326.fits outfile=/scratch/kocevski/149432/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin326.fits ra=357.356 dec=5.579 rad=12.0 tmin=323827201.0 tmax=324086401.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.35
user 3.11
sys 0.21

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149432/ft1_filtered_4FGL_J2349.4+0534_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/149432/ft2_4FGL_J2349.4+0534_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/149432/ltcube_323827201_324086401_4FGL_J2349.4+0534_daily_bin326.fits outfile=/scratch/kocevski/149432/expmap_323827201_324086401_4FGL_J2349.4+0534_daily_bin326.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/149432/ltcube_323827201_324086401_4FGL_J2349.4+0534_daily_bin326.fits
.....................!
real 189.78
user 185.02
sys 4.35

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/149432/ft1_filtered_4FGL_J2349.4+0534_daily_bin326.fits scfile=/scratch/kocevski/149432/ft2_4FGL_J2349.4+0534_daily_bin326.fits outfile=/scratch/kocevski/149432/cmap_323827201_324086401_4FGL_J2349.4+0534_daily_bin326.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149432/ft1_filtered_4FGL_J2349.4+0534_daily_bin326.fits scfile=/scratch/kocevski/149432/ft2_4FGL_J2349.4+0534_daily_bin326.fits outfile=/scratch/kocevski/149432/cmap_HighResolution_323827201_324086401_4FGL_J2349.4+0534_daily_bin326.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6161       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9182       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12739E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0194       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1028       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7503       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23892E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.463       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82260       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.275       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3219       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84438       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=   7421.055     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2568 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3816       -.42184E-07** at limit **
   2  norm          .10000E-03    1.4211       -.50462E-07** at limit **
   3  norm          6.6134        4.6543       -.45191E-06   -.12045E-03
   4  Prefactor     4.9217        15.729        .73982E-05    .51320E-05
   5  Prefactor     .10000E-03    93.501       -.35828E-07** at limit **
   6  Prefactor     .10098E-03    7.5308       -.39627E-06** at limit **
   7  Prefactor     .10000E-03    9.0182        .49000E-07** at limit **
   8  norm          2.0185        .86914        .11332E-07   -.20592E-03
   9  Prefactor     2.1005        2.8864        .34279E-07   -.15224E-02
  10  Prefactor     .10000E-03    21.980       -.14668E-05** at limit **
  11  norm          3.7516        6.2706        .88886E-07   -.84577E-03
  12  Prefactor     .10000E-03    4.0542        .95887E-08** at limit **
  13  Prefactor     .10000E-03    249.86        .37908E-04** at limit **
  14  Prefactor     .10000E-03    4.7246       -.16273E-07** at limit **
  15  Prefactor     18.468        20.783       -.22221E-06   -.11095E-04
  16  norm          .10000E-03    22.807       -.41736E-06** at limit **
  17  norm          .10000E-03    8.7381       -.37030E-07** at limit **
  18  Prefactor     .80763        4.0871        .20162E-06   -.19660E-03
  19  Prefactor     .10000E-03    22.458        .20590E-05** at limit **
  20  Prefactor     17.255        24.666        .43116E-05   -.55677E-05
  21  Prefactor     .10000E-03    5.4223        .13586E-07** at limit **
  22  Normalizat    1.3223        .19483       -.15854E-05    .21575E-04
  23  Prefactor     .84417        .12618        .96444E-07   -.11702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.61339
  Prefactor  = 4.92173
  Prefactor  = 0.0001
  Prefactor  = 0.000100984
  Prefactor  = 0.0001
  norm       = 2.01846
  Prefactor  = 2.10048
  Prefactor  = 0.0001
  norm       = 3.75158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4683
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.807634
  Prefactor  = 0.0001
  Prefactor  = 17.2548
  Prefactor  = 0.0001
  Normalizat = 1.32234
  Prefactor  = 0.844167
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.055     FROM HESSE     STATUS=OK           378 CALLS     2946 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4521        .10017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6134        4.6402        .14465E-03   -1.5194    
   4  Prefactor     4.9217        15.770        .18136E-03   -1.5264    
   5  Prefactor     .10000E-03    95.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10098E-03    9.4798        .75844E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0185        .86697        .50984E-04   -1.5424    
   9  Prefactor     2.1005        5.0455        .14228E-02   -1.5418    
  10  Prefactor     .10000E-03    21.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7516        6.6309        .10424E-02   -1.5321    
  12  Prefactor     .10000E-03    4.1040        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    250.26        .20063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.468        20.898        .93212E-04   -1.4848    
  16  norm          .10000E-03    23.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.7443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .80763        4.3050        .32720E-02   -1.5528    
  19  Prefactor     .10000E-03    22.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.255        24.679        .96363E-04   -1.4877    
  21  Prefactor     .10000E-03    5.4304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3223        .22756        .27303E-03   -.82902    
  23  Prefactor     .84417        .14828        .22501E-03   -.98120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50242e-08
Minuit parameter uncertainties:
  1  6.10857e-06
  2  5.37918e-06
  3  4.6404
  4  15.7838
  5  0.00018052
  6  0.00611078
  7  8.65441e-06
  8  0.866977
  9  5.0465
  10  4.82047e-06
  11  6.63217
  12  7.77881e-06
  13  0.000164895
  14  1.94826e-06
  15  20.9066
  16  4.34152e-05
  17  4.15116e-07
  18  3.72946
  19  5.64625e-06
  20  24.6935
  21  2.48287e-06
  22  0.227733
  23  0.148355
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.442e-01  1.484e-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:  1.322e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149432/likelihoodResults_323827201_324086401_4FGL_J2349.4+0534_daily_bin326.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7421.0300843
delta logL = 0.0249031166341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7421.02013947
delta logL = 0.0348479523036

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7421.020     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      241 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.434        31.560        .86500E-04    .10149E-02
   2  Index         2.2442        .80218        .10025E-01    .50625E-03
   3  Normalizat    1.3294        .21613        .27241E-03   -.10092E-02
   4  Prefactor     .84020        .14689        .22547E-03   -.16373E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4344
  Index      = 2.24422
  Normalizat = 1.32945
  Prefactor  = 0.840196
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.020     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.434        30.835        .17300E-04   -1.4782    
   2  Index         2.2442        .78352        .40099E-03   -.58375    
   3  Normalizat    1.3294        .21612        .54481E-04   -.82692    
   4  Prefactor     .84020        .14689        .45094E-04   -.98263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32574e-08
Minuit parameter uncertainties:
  1  30.8583
  2  0.7882
  3  0.216272
  4  0.146954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149432': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7421.02013942
delta logL = 0.0348480028433

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.402e-01  1.470e-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:  1.329e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
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/149432/cmap_HighResolution_323827201_324086401_4FGL_J2349.4+0534_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-30 06:50:27.340402', job_id='149432', GAL2='0.84', fit_tolerance='1e-08', EG2='1.33', EG='1.32', time_epoch_completed='1633009827.34', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.48e-02', ts2='0.64', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='326' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 149432: <4FGL_J2349.4+0534_daily_bin326> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin326> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:53 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:55 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:35:55 2021
Terminated at Thu Sep 30 06:50:28 2021
Results reported at Thu Sep 30 06:50:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin326 357.356 5.579 323827201 324086401 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 :                                   702.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

