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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1030
RA = 334.823, Dec = -3.7102
tmin = 506304001, tmax = 506563201
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='259974', job_status='RUN', time_executed='2021-09-28 09:14:07.375674', time_epoch_executed='1632845647.38' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259974

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259974/ft1_4FGL_J2219.2-0342_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259974/ft1_4FGL_J2219.2-0342_daily_bin1030.fits outfile=/scratch/kocevski/259974/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1030.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=506304001.0 tmax=506563201.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 2.78
user 2.57
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.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/259974/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1030.fits evtable="EVENTS" outfile="/scratch/kocevski/259974/ft1_filtered_4FGL_J2219.2-0342_daily_bin1030.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.42
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259974/ft1_filtered_4FGL_J2219.2-0342_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/259974/ltcube_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.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/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits
.....................!
real 9.39
user 9.08
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259974/ft1_filtered_4FGL_J2219.2-0342_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/259974/ltcube_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.fits outfile=/scratch/kocevski/259974/expmap_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.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/259974/ltcube_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.fits
.....................!
real 152.24
user 147.50
sys 4.44

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/259974/ft1_filtered_4FGL_J2219.2-0342_daily_bin1030.fits scfile=/scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits outfile=/scratch/kocevski/259974/cmap_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.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=334.823 yref=-3.7102 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.47
user 0.33
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259974/ft1_filtered_4FGL_J2219.2-0342_daily_bin1030.fits scfile=/scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits outfile=/scratch/kocevski/259974/cmap_HighResolution_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.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=334.823 yref=-3.7102 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.47
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259974/ft1_filtered_4FGL_J2219.2-0342_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259974/Model_4FGL_J2219.2-0342_daily_bin1030.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/259974/ft1_filtered_4FGL_J2219.2-0342_daily_bin1030.fits.....................!
real 63.25
user 62.06
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259974/ft1_filtered_4FGL_J2219.2-0342_daily_bin1030.fits', '/scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits', expMap='/scratch/kocevski/259974/expmap_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.fits', expCube='/scratch/kocevski/259974/ltcube_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259974/Model_4FGL_J2219.2-0342_daily_bin1030.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2-0342'

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.492e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/259974/ft1_filtered_4FGL_J2219.2-0342_daily_bin1030.fits
Spacecraft file(s): /scratch/kocevski/259974/ft2_4FGL_J2219.2-0342_daily_bin1030.fits
Exposure map: /scratch/kocevski/259974/expmap_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.fits
Exposure cube: /scratch/kocevski/259974/ltcube_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259974/Model_4FGL_J2219.2-0342_daily_bin1030.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) = 8213.72887385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    81.262       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.572       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7869       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.115       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9055       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57828       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8272       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0462       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    158.88       1.0000         .10000E-03   10000.    
    20 'norm      '    26.661       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .85673E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    20.022       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3424       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .62842       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8213.440     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2923 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .85580        .30473E-06** at limit **
   2  Prefactor     81.193        50.148       -.23286E-04    .49236E-04
   3  Prefactor     34.592        34.493       -.11259E-04    .21027E-05
   4  Prefactor     7.8297        130.21        .90214E-04    .11489E-03
   5  Prefactor     .10002E-03    13.824       -.13442E-04** at limit **
   6  Prefactor     .10000E-03    3.3870        .10893E-07** at limit **
   7  Prefactor     .10000E-03    7.5878        .16293E-06** at limit **
   8  Prefactor     .10000E-03    9.3908       -.19179E-05** at limit **
   9  Prefactor     13.116        11.584        .16351E-05    .74327E-04
  10  Prefactor     .10000E-03    33.404        .17666E-05** at limit **
  11  Prefactor     7.9048        9.5456        .14474E-06   -.66168E-04
  12  Prefactor     .10000E-03    9.9613        .36564E-05** at limit **
  13  Prefactor     .53685        5.0904       -.26737E-05    .13225E-03
  14  Prefactor     .10000E-03    16.256        .18203E-04** at limit **
  15  Prefactor     4.8275        3.5151        .11960E-06    .25706E-03
  16  norm          2.0460        3.2006       -.91923E-06   -.91830E-03
  17  Prefactor     .10000E-03    19.171       -.99402E-05** at limit **
  18  norm          .10000E-03    .44963       -.33318E-06** at limit **
  19  Prefactor     158.92        87.889        .24352E-04   -.92241E-04
  20  norm          26.658        7.7086       -.45289E-05    .12548E-02
  21  Prefactor     .10070E-03    7.2397       -.50264E-07** at limit **
  22  norm          20.017        11.545       -.46246E-06   -.71440E-05
  23  Normalizat    1.3422        .20514       -.18729E-05    .52909E-03
  24  Prefactor     .62860        .11281        .16273E-05    .30399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 81.1927
  Prefactor  = 34.5917
  Prefactor  = 7.82972
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1157
  Prefactor  = 0.000100001
  Prefactor  = 7.9048
  Prefactor  = 0.0001
  Prefactor  = 0.536854
  Prefactor  = 0.0001
  Prefactor  = 4.8275
  norm       = 2.04604
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 158.922
  norm       = 26.6582
  Prefactor  = 0.000100699
  norm       = 20.0168
  Normalizat = 1.34225
  Prefactor  = 0.628596
 **********
 **   18 **HESSE 
 **********

 FCN=   8213.440     FROM HESSE     STATUS=OK           401 CALLS     3324 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .86415        .81864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     81.193        50.200        .44555E-04   -1.3903    
   3  Prefactor     34.592        34.496        .68155E-04   -1.4531    
   4  Prefactor     7.8297        132.02        .14370E-03   -1.5148    
   5  Prefactor     .10002E-03    14.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4477        .16281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.4157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.116        11.569        .11061E-03   -1.4983    
  10  Prefactor     .10000E-03    34.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9048        9.5729        .14261E-03   -1.5146    
  12  Prefactor     .10000E-03    9.9673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .53685        15.057        .38326E-02   -1.5561    
  14  Prefactor     .10000E-03    16.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8275        3.4900        .13666E-03   -1.5269    
  16  norm          2.0460        3.1945        .19187E-03   -1.5422    
  17  Prefactor     .10000E-03    19.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .98599        .11789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     158.92        89.794        .31990E-04   -1.3180    
  20  norm          26.658        7.8863        .63415E-04   -1.4675    
  21  Prefactor     .10070E-03    8.4500        .82286E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.017        11.569        .89512E-04   -1.4813    
  23  Normalizat    1.3422        .24787        .28564E-03   -.82314    
  24  Prefactor     .62860        .13591        .23097E-03   -1.0640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37691e-09
Minuit parameter uncertainties:
  1  3.14952e-05
  2  50.2258
  3  34.5159
  4  64.4688
  5  0.000943695
  6  4.41652e-06
  7  2.68945e-05
  8  7.2696e-05
  9  11.5713
  10  0.00032017
  11  9.57479
  12  1.92959e-05
  13  5.6874
  14  1.13228e-05
  15  3.49012
  16  3.19476
  17  1.67222e-06
  18  3.1835e-05
  19  89.8713
  20  7.8866
  21  0.00486302
  22  11.5699
  23  0.248093
  24  0.135984
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.369e-01  5.687e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  6.286e-01  1.360e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.342e+00  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 8.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259974/likelihoodResults_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.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) = 8213.43440817
delta logL = 0.00522336023823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8213.43262718
delta logL = 0.00700434851751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89164       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3786       1.0000          .0000       10.000    
     3 'Normalizat'    1.3427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62792       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+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=   8213.433     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      255 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89118        10.631        .51109E-03    .27022E-03
   2  Index         2.3787        2.1716        .23708E-01    .63174E-04
   3  Normalizat    1.3426        .23201        .28561E-03   -.22484E-03
   4  Prefactor     .62804        .13422        .23106E-03   -.30338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.891185
  Index      = 2.3787
  Normalizat = 1.3426
  Prefactor  = 0.628039
 **********
 **   18 **HESSE 
 **********

 FCN=   8213.433     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89118        10.289        .20444E-04   -1.5519    
   2  Index         2.3787        2.1428        .94830E-03   -.55185    
   3  Normalizat    1.3426        .23226        .57121E-04   -.82304    
   4  Prefactor     .62804        .13434        .92424E-05   -1.0642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49068e-09
Minuit parameter uncertainties:
  1  6.05709
  2  2.24544
  3  0.232438
  4  0.134409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259974': 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) = 8213.43262651
delta logL = 0.00700502553627

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.912e-01  6.057e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.379e+00  2.245e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  6.280e-01  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.343e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 334.823 -3.710

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/259974/cmap_HighResolution_506304001_506563201_4FGL_J2219.2-0342_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-09-28 09:24:48.357065', job_id='259974', GAL2='0.63', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632846288.36', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='7.01e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1030' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 259974: <4FGL_J2219.2-0342_daily_bin1030> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1030> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:58 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:10:59 2021
Terminated at Tue Sep 28 09:24:49 2021
Results reported at Tue Sep 28 09:24:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1030 334.823 -3.7102 506304001 506563201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2-0342 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            831 sec.

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

