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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1088
RA = 57.4699, Dec = -21.0576
tmin = 521337601, tmax = 521596801
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='32103', job_status='RUN', time_executed='2021-08-19 15:59:26.831186', time_epoch_executed='1629413966.83' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32103/ft1_4FGL_J0349.8-2103_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32103/ft1_4FGL_J0349.8-2103_daily_bin1088.fits outfile=/scratch/kocevski/32103/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1088.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=521337601.0 tmax=521596801.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 6.02
user 4.87
sys 1.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.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/32103/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1088.fits evtable="EVENTS" outfile="/scratch/kocevski/32103/ft1_filtered_4FGL_J0349.8-2103_daily_bin1088.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 1.35
user 0.33
sys 1.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32103/ft1_filtered_4FGL_J0349.8-2103_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/32103/ltcube_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.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/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.fits
.....................!
real 12.87
user 11.53
sys 1.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32103/ft1_filtered_4FGL_J0349.8-2103_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/32103/ltcube_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.fits outfile=/scratch/kocevski/32103/expmap_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.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/32103/ltcube_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.fits
.....................!
real 192.44
user 185.87
sys 5.96

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/32103/ft1_filtered_4FGL_J0349.8-2103_daily_bin1088.fits scfile=/scratch/kocevski/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.fits outfile=/scratch/kocevski/32103/cmap_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.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 1.46
user 0.39
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32103/ft1_filtered_4FGL_J0349.8-2103_daily_bin1088.fits scfile=/scratch/kocevski/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.fits outfile=/scratch/kocevski/32103/cmap_HighResolution_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.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 1.59
user 0.38
sys 1.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32103/ft1_filtered_4FGL_J0349.8-2103_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32103/Model_4FGL_J0349.8-2103_daily_bin1088.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/32103/ft1_filtered_4FGL_J0349.8-2103_daily_bin1088.fits......................!
real 99.29
user 96.35
sys 2.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/32103/ft1_filtered_4FGL_J0349.8-2103_daily_bin1088.fits', '/scratch/kocevski/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.fits', expMap='/scratch/kocevski/32103/expmap_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.fits', expCube='/scratch/kocevski/32103/ltcube_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/32103/Model_4FGL_J0349.8-2103_daily_bin1088.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/32103/ft1_filtered_4FGL_J0349.8-2103_daily_bin1088.fits
Spacecraft file(s): /scratch/kocevski/32103/ft2_4FGL_J0349.8-2103_daily_bin1088.fits
Exposure map: /scratch/kocevski/32103/expmap_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.fits
Exposure cube: /scratch/kocevski/32103/ltcube_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/32103/Model_4FGL_J0349.8-2103_daily_bin1088.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) = 4370.72715058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6980       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42871E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4967       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.7365       1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.925       1.0000         .10000E-03   10000.    
    15 'norm      '    .56991E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .15823E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6415       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4163       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.830       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96670       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91630       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=   4370.721     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2898 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6987        3.6049       -.30022E-05   -.57159E-03
   2  Prefactor     .10000E-03    6.6846       -.23511E-06** at limit **
   3  Prefactor     .10000E-03    70.269        .85753E-04** at limit **
   4  Prefactor     .10000E-03    2.1320       -.82962E-07** at limit **
   5  Prefactor     .10000E-03    11.571       -.34233E-05** at limit **
   6  Prefactor     .10000E-03    8.6815        .23060E-06** at limit **
   7  Prefactor     .10000E-03    15.135        .11471E-05** at limit **
   8  Prefactor     65.392        56.360        .55466E-05    .13568E-04
   9  Prefactor     .10005E-03    193.45       -.24099E-04** at limit **
  10  Prefactor     5.4882        4.0709        .15768E-06   -.79424E-03
  11  Prefactor     .10000E-03    1.6969       -.12614E-06** at limit **
  12  Prefactor     .10000E-03    2.2580       -.53151E-06** at limit **
  13  norm          4.7369        1.5965       -.25893E-06    .11262E-02
  14  Prefactor     64.867        40.482       -.32868E-04   -.17426E-04
  15  norm          .10000E-03    1.3710        .82176E-06** at limit **
  16  Prefactor     .10000E-03    123.87       -.51517E-04** at limit **
  17  Prefactor     .10000E-03    11.763        .26538E-05** at limit **
  18  Prefactor     .10000E-03    2.1449        .14845E-06** at limit **
  19  norm          .10000E-03    52.551       -.41516E-04** at limit **
  20  Prefactor     3.6328        49.777       -.47805E-05    .11898E-03
  21  Prefactor     3.4174        5.9315       -.22608E-06   -.22577E-03
  22  Prefactor     .10000E-03    2.2984        .41273E-06** at limit **
  23  Prefactor     24.834        23.530       -.17732E-05    .51777E-05
  24  Normalizat    .96670        .20725        .43149E-05    .95906E-04
  25  Prefactor     .91613        .17691        .38991E-05    .11902E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.3924
  Prefactor  = 0.000100054
  Prefactor  = 5.48824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.73692
  Prefactor  = 64.8668
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 3.63278
  Prefactor  = 3.4174
  Prefactor  = 0.0001
  Prefactor  = 24.8343
  Normalizat = 0.966701
  Prefactor  = 0.916127
 **********
 **   18 **HESSE 
 **********

 FCN=   4370.721     FROM HESSE     STATUS=OK           417 CALLS     3315 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6987        3.5866        .17652E-03   -1.5447    
   2  Prefactor     .10000E-03    6.6860        .16695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    70.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1417        .94257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     65.392        56.446        .49632E-04   -1.4089    
   9  Prefactor     .10005E-03    196.07        .21232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.4882        3.8338        .10138E-03   -1.5239    
  11  Prefactor     .10000E-03    1.7022        .84068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2736        .96944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.7369        1.6011        .45253E-04   -1.5273    
  14  Prefactor     64.867        40.503        .49806E-04   -1.4095    
  15  norm          .10000E-03    5.2496        .13771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    124.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1719        .94409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    53.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6328        49.251        .21170E-03   -1.5327    
  21  Prefactor     3.4174        5.9179        .20457E-03   -1.5338    
  22  Prefactor     .10000E-03    2.3133        .97842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.834        23.533        .80390E-04   -1.4711    
  24  Normalizat    .96670        .23506        .26034E-03   -.94154    
  25  Prefactor     .91613        .20068        .23279E-03   -.95580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46852e-09
Minuit parameter uncertainties:
  1  3.58708
  2  7.98531e-06
  3  1.71957e-05
  4  2.3276e-06
  5  5.53752e-05
  6  6.41917e-06
  7  2.58187e-05
  8  56.4927
  9  0.00650906
  10  3.83398
  11  5.45002e-06
  12  1.09315e-05
  13  1.60108
  14  40.5205
  15  0.000107709
  16  0.000163528
  17  0.00030243
  18  5.75064e-06
  19  0.000912529
  20  26.7787
  21  5.9189
  22  6.05831e-06
  23  23.5415
  24  0.23531
  25  0.200845
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  1.077e-04  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.161e-01  2.008e-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:  9.667e-01  2.353e-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: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32103/likelihoodResults_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.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) = 4370.72169725
delta logL = -0.000913357596801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4370.72078262
delta logL = 1.26990926219e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10481E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4078       1.0000          .0000       5.0000    
     3 'Normalizat'    .96679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91604       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4370.721     FROM MIGRAD    STATUS=FAILED       100 CALLS      262 TOTAL
                     EDM=   .75E-02    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13882E-03    8719.5        .12553E-02** at limit **
   2  alpha         3.5923        .12602        .16475        .10983E-04
   3  Normalizat    .96670        .18723        .26034E-03    .12867E-02
   4  Prefactor     .91613        .11465        .23279E-03    .10254E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4370.719     FROM SIMPLEX   STATUS=PROGRESS     149 CALLS      411 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44688E-01    8719.5        .22394E-03   -1.5750    
   2  alpha         3.5923        .12602        .22893E-06    .45218    
   3  Normalizat    .96669        .18723        .38164E-06   -.94155    
   4  Prefactor     .91612        .11465        .15668E-06   -.95580    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4370.718     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      477 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78043E-01    5.4698        .50211E-03    .37592E-03
   2  alpha         3.3237        3.6558        .65899E-01   -.71853E-06
   3  Normalizat    .96300        .23218        .52067E-04    .33625E-04
   4  Prefactor     .91694        .19950        .46559E-04    .48494E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0780433
  alpha      = 3.32367
  Normalizat = 0.962997
  Prefactor  = 0.916937
 **********
 **   18 **HESSE 
 **********

 FCN=   4370.718     FROM HESSE     STATUS=OK            27 CALLS      504 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78043E-01    4.6196        .20085E-04   -1.5764    
   2  alpha         3.3237        3.8778        .26360E-02    .33574    
   3  Normalizat    .96300        .23297        .10413E-04   -.94281    
   4  Prefactor     .91694        .19956        .93117E-05   -.95552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82506e-10
Minuit parameter uncertainties:
  1  1.2002
  2  6.12309
  3  0.233214
  4  0.199717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32103': 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) = 4370.7183117
delta logL = 0.0024721944319

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  7.804e-02  1.200e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  3.324e+00  6.123e+00  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:  9.169e-01  1.997e-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:  9.630e-01  2.332e-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/32103/cmap_HighResolution_521337601_521596801_4FGL_J0349.8-2103_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-05', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-08-19 16:11:04.844456', job_id='32103', GAL2='0.92', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1629414664.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.47e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1088' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 32103: <4FGL_J0349.8-2103_daily_bin1088> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1088> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 15:55:47 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 15:55:49 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:55:49 2021
Terminated at Thu Aug 19 16:11:05 2021
Results reported at Thu Aug 19 16:11:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1088 57.4699 -21.0576 521337601 521596801 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 :                                   637.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

