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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin826
RA = 57.4699, Dec = -21.0576
tmin = 453427201, tmax = 453686401
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='30110', job_status='RUN', time_executed='2021-08-19 15:54:30.767576', time_epoch_executed='1629413670.77' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='826'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30110/ft1_4FGL_J0349.8-2103_daily_bin826.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30110/ft1_4FGL_J0349.8-2103_daily_bin826.fits outfile=/scratch/kocevski/30110/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin826.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=453427201.0 tmax=453686401.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.63
user 3.42
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.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/30110/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin826.fits evtable="EVENTS" outfile="/scratch/kocevski/30110/ft1_filtered_4FGL_J0349.8-2103_daily_bin826.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30110/ft1_filtered_4FGL_J0349.8-2103_daily_bin826.fits" evtable="EVENTS" scfile=/scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits sctable="SC_DATA" outfile=/scratch/kocevski/30110/ltcube_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.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/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits
.....................!
real 11.91
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30110/ft1_filtered_4FGL_J0349.8-2103_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits sctable="SC_DATA" expcube=/scratch/kocevski/30110/ltcube_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.fits outfile=/scratch/kocevski/30110/expmap_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.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/30110/ltcube_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.fits
.....................!
real 191.57
user 185.69
sys 5.26

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 151 point sources and 1 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 J0349.8-2103 @ 57.4699 -21.0576

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/30110/ft1_filtered_4FGL_J0349.8-2103_daily_bin826.fits scfile=/scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits outfile=/scratch/kocevski/30110/cmap_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.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=57.4699 yref=-21.0576 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30110/ft1_filtered_4FGL_J0349.8-2103_daily_bin826.fits scfile=/scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits outfile=/scratch/kocevski/30110/cmap_HighResolution_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.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=57.4699 yref=-21.0576 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30110/ft1_filtered_4FGL_J0349.8-2103_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30110/Model_4FGL_J0349.8-2103_daily_bin826.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/30110/ft1_filtered_4FGL_J0349.8-2103_daily_bin826.fits.....................!
real 93.36
user 91.98
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/30110/ft1_filtered_4FGL_J0349.8-2103_daily_bin826.fits', '/scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits', expMap='/scratch/kocevski/30110/expmap_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.fits', expCube='/scratch/kocevski/30110/ltcube_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/30110/Model_4FGL_J0349.8-2103_daily_bin826.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0349.8-2103'

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/30110/ft1_filtered_4FGL_J0349.8-2103_daily_bin826.fits
Spacecraft file(s): /scratch/kocevski/30110/ft2_4FGL_J0349.8-2103_daily_bin826.fits
Exposure map: /scratch/kocevski/30110/expmap_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.fits
Exposure cube: /scratch/kocevski/30110/ltcube_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/30110/Model_4FGL_J0349.8-2103_daily_bin826.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) = 3939.84987912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1342       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12662E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5215       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.871       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5335       1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.277       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3667       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0458       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15339E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.507       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.239       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12781E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.471       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.356       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.779       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79006       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3939.818     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2997 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1349        4.0344        .16565E-05    .14422E-03
   2  Prefactor     .10000E-03    10.726        .17818E-06** at limit **
   3  Prefactor     .10000E-03    855.25        .31498E-05** at limit **
   4  Prefactor     1.5218        3.6465        .51059E-06    .66389E-04
   5  Prefactor     51.861        28.209       -.22201E-06   -.15263E-04
   6  Prefactor     4.5196        15.010        .85037E-06    .66937E-05
   7  Prefactor     93.277        62.309       -.32709E-06   -.37166E-05
   8  Prefactor     8.3683        119.22       -.19479E-05   -.19912E-05
   9  Prefactor     .10000E-03    18.922       -.78030E-07** at limit **
  10  Prefactor     2.0471        3.4932       -.85043E-07   -.34650E-04
  11  Prefactor     .10000E-03    3.6448        .25906E-06** at limit **
  12  Prefactor     .10000E-03    3.2152       -.19192E-06** at limit **
  13  norm          .10000E-03    .36193       -.82529E-07** at limit **
  14  Prefactor     41.495        30.284       -.26202E-06   -.34487E-04
  15  norm          .10000E-03    .98265        .50607E-07** at limit **
  16  Prefactor     46.716        141.62       -.29638E-05   -.16596E-04
  17  Prefactor     .10000E-03    15.314       -.57945E-06** at limit **
  18  Prefactor     .10002E-03    2.2641        .13983E-06** at limit **
  19  norm          .10000E-03    4.9789        .33419E-07** at limit **
  20  Prefactor     .10000E-03    14.310        .17725E-06** at limit **
  21  Prefactor     35.469        13.124        .45941E-07   -.50876E-04
  22  Prefactor     13.353        7.5665       -.33723E-06   -.16854E-03
  23  Prefactor     18.776        24.669        .16838E-06   -.10683E-04
  24  Normalizat    .79012        .26069        .38685E-05   -.16146E-03
  25  Prefactor     .98251        .21195       -.40105E-05   -.54522E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1349
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.52179
  Prefactor  = 51.8608
  Prefactor  = 4.51959
  Prefactor  = 93.2769
  Prefactor  = 8.3683
  Prefactor  = 0.0001
  Prefactor  = 2.04711
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 41.4953
  norm       = 0.0001
  Prefactor  = 46.7164
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.469
  Prefactor  = 13.3534
  Prefactor  = 18.7756
  Normalizat = 0.790119
  Prefactor  = 0.982505
 **********
 **   18 **HESSE 
 **********

 FCN=   3939.818     FROM HESSE     STATUS=OK           439 CALLS     3436 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1349        4.0976        .23296E-03   -1.5495    
   2  Prefactor     .10000E-03    10.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    859.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5218        3.5951        .17620E-03   -1.5461    
   5  Prefactor     51.861        28.166        .55686E-04   -1.4266    
   6  Prefactor     4.5196        15.033        .18908E-03   -1.5283    
   7  Prefactor     93.277        62.307        .20806E-03   -1.3773    
   8  Prefactor     8.3683        117.59        .13859E-03   -1.5129    
   9  Prefactor     .10000E-03    18.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0471        3.3470        .13765E-03   -1.5422    
  11  Prefactor     .10000E-03    3.6971        .11680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.661        .20395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .36482        .36637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.495        30.267        .62221E-04   -1.4419    
  15  norm          .10000E-03    1.0012        .12086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     46.716        142.27        .29170E-03   -1.4340    
  17  Prefactor     .10000E-03    15.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    9.9568        .28309E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.9821        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.469        13.127        .67288E-04   -1.4516    
  22  Prefactor     13.353        7.5764        .10960E-03   -1.4977    
  23  Prefactor     18.776        24.678        .92425E-04   -1.4841    
  24  Normalizat    .79012        .26821        .28507E-03   -1.0044    
  25  Prefactor     .98251        .21694        .22568E-03   -.93315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73423e-10
Minuit parameter uncertainties:
  1  4.09864
  2  1.06701e-05
  3  0.00263563
  4  3.59562
  5  28.1735
  6  15.0456
  7  62.3506
  8  62.8881
  9  1.05126e-06
  10  3.3473
  11  7.05458e-06
  12  0.000634614
  13  1.78421e-07
  14  30.2779
  15  2.38566e-06
  16  143.321
  17  2.48441e-05
  18  0.000800261
  19  1.47585e-06
  20  8.96265e-06
  21  13.1281
  22  7.57698
  23  24.6911
  24  0.268661
  25  0.217135
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  2.386e-06  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  9.825e-01  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  7.901e-01  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.470 -21.058
Photon Flux Upper Limit: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30110/likelihoodResults_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.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) = 3939.82302332
delta logL = -0.00472898320368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3939.58409084
delta logL = 0.234203491757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99456E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .73334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0111       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3939.584     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      281 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99504E-01    9.4639        .66410E-02    .15807E-02
   2  alpha         5.0000        2.9146        .46267    ** at limit **
   3  Normalizat    .73326        .14590        .66651E-01   -.10494E-04
   4  Prefactor     1.0112        .86424E-01    .43176E-01   -.41600E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0995038
  alpha      = 5
  Normalizat = 0.73326
  Prefactor  = 1.01117
 **********
 **   18 **HESSE 
 **********

 FCN=   3939.584     FROM HESSE     STATUS=OK            35 CALLS      316 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99504E-01    .16460        .30396E-03   -1.5645    
   2  alpha         5.0000        4.3070        .98384E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .73326        .25496        .29490E-03   -1.0259    
   4  Prefactor     1.0112        .21676        .22277E-03   -.92358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68264e-09
Minuit parameter uncertainties:
  1  0.164596
  2  5.29555e-07
  3  0.255375
  4  0.216948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30110': 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) = 3939.58409066
delta logL = 0.234203671733

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  9.950e-02  1.646e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  5.000e+00  5.296e-07  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  1.011e+00  2.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  7.333e-01  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.470 -21.058

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/30110/cmap_HighResolution_453427201_453686401_4FGL_J0349.8-2103_daily_bin826.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-08-19 16:04:07.928138', job_id='30110', GAL2='1.01', fit_tolerance='1e-08', EG2='0.73', EG='0.79', time_epoch_completed='1629414247.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.34e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='826' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:04:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 30110: <4FGL_J0349.8-2103_daily_bin826> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin826> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 15:50:30 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 15:50:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 15:50:32 2021
Terminated at Thu Aug 19 16:04:08 2021
Results reported at Thu Aug 19 16:04:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin826 57.4699 -21.0576 453427201 453686401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0349.8-2103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

