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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin546
RA = 334.823, Dec = -3.7102
tmin = 380851201, tmax = 381110401
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='258206', job_status='RUN', time_executed='2021-09-28 09:05:50.326430', time_epoch_executed='1632845150.33' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258206

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258206/ft1_4FGL_J2219.2-0342_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258206/ft2_4FGL_J2219.2-0342_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258206/ft1_4FGL_J2219.2-0342_daily_bin546.fits outfile=/scratch/kocevski/258206/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin546.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=380851201.0 tmax=381110401.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.45
user 3.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258206/ft2_4FGL_J2219.2-0342_daily_bin546.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/258206/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin546.fits evtable="EVENTS" outfile="/scratch/kocevski/258206/ft1_filtered_4FGL_J2219.2-0342_daily_bin546.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258206/ft1_filtered_4FGL_J2219.2-0342_daily_bin546.fits" evtable="EVENTS" scfile=/scratch/kocevski/258206/ft2_4FGL_J2219.2-0342_daily_bin546.fits sctable="SC_DATA" outfile=/scratch/kocevski/258206/ltcube_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.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/258206/ft2_4FGL_J2219.2-0342_daily_bin546.fits
.....................!
real 11.77
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258206/ft1_filtered_4FGL_J2219.2-0342_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/258206/ft2_4FGL_J2219.2-0342_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/258206/ltcube_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.fits outfile=/scratch/kocevski/258206/expmap_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.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/258206/ltcube_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.fits
.....................!
real 192.64
user 186.61
sys 5.72

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/258206/ft1_filtered_4FGL_J2219.2-0342_daily_bin546.fits scfile=/scratch/kocevski/258206/ft2_4FGL_J2219.2-0342_daily_bin546.fits outfile=/scratch/kocevski/258206/cmap_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258206/ft1_filtered_4FGL_J2219.2-0342_daily_bin546.fits scfile=/scratch/kocevski/258206/ft2_4FGL_J2219.2-0342_daily_bin546.fits outfile=/scratch/kocevski/258206/cmap_HighResolution_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258206/ft1_filtered_4FGL_J2219.2-0342_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/258206/ft2_4FGL_J2219.2-0342_daily_bin546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258206/Model_4FGL_J2219.2-0342_daily_bin546.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/258206/ft1_filtered_4FGL_J2219.2-0342_daily_bin546.fits.....................!
real 50.52
user 49.27
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/258206/ft1_filtered_4FGL_J2219.2-0342_daily_bin546.fits', '/scratch/kocevski/258206/ft2_4FGL_J2219.2-0342_daily_bin546.fits', expMap='/scratch/kocevski/258206/expmap_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.fits', expCube='/scratch/kocevski/258206/ltcube_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/258206/Model_4FGL_J2219.2-0342_daily_bin546.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/258206/ft1_filtered_4FGL_J2219.2-0342_daily_bin546.fits
Spacecraft file(s): /scratch/kocevski/258206/ft2_4FGL_J2219.2-0342_daily_bin546.fits
Exposure map: /scratch/kocevski/258206/expmap_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.fits
Exposure cube: /scratch/kocevski/258206/ltcube_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/258206/Model_4FGL_J2219.2-0342_daily_bin546.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) = 5060.73386408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.576       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.176       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12074E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.024       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48524E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29925E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4424       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5614       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80079       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95699       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=   5060.664     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2401 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2817        2.5286       -.15956E-06    .98508E-04
   2  Prefactor     .10000E-03    9.2664       -.22309E-07** at limit **
   3  Prefactor     .10000E-03    92.547       -.18557E-05** at limit **
   4  Prefactor     .10000E-03    27.882        .21127E-05** at limit **
   5  Prefactor     .10000E-03    9.8451       -.12677E-06** at limit **
   6  Prefactor     .10000E-03    3.6416        .21188E-07** at limit **
   7  Prefactor     20.743        12.686       -.75215E-07   -.45994E-05
   8  Prefactor     15.576        15.415       -.20218E-06   -.16441E-04
   9  Prefactor     40.178        24.664       -.21925E-06    .74058E-05
  10  Prefactor     .10000E-03    13.995        .38708E-07** at limit **
  11  Prefactor     .10000E-03    45.437       -.77834E-06** at limit **
  12  Prefactor     .10000E-03    4.8118        .70069E-08** at limit **
  13  Prefactor     16.059        15.304        .24832E-06    .87693E-04
  14  Prefactor     .10000E-03    80.694        .56446E-05** at limit **
  15  Prefactor     .10014E-03    3.2702        .11678E-05** at limit **
  16  norm          .10000E-03    2.4316       -.72127E-07** at limit **
  17  Prefactor     .10000E-03    30.430       -.23579E-05** at limit **
  18  norm          1.9291        1.2362       -.24213E-07    .18923E-03
  19  Prefactor     .10000E-03    139.03       -.23147E-04** at limit **
  20  norm          .10000E-03    1.0063       -.11193E-05** at limit **
  21  Prefactor     1.4431        33.069       -.27212E-05    .13514E-04
  22  norm          4.5613        9.1024       -.33054E-05    .41312E-04
  23  Normalizat    .80091        .22546       -.21108E-07    .14729E-03
  24  Prefactor     .95695        .13370        .61409E-06    .23732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7432
  Prefactor  = 15.5758
  Prefactor  = 40.1784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0594
  Prefactor  = 0.0001
  Prefactor  = 0.000100142
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92907
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.4431
  norm       = 4.56131
  Normalizat = 0.800912
  Prefactor  = 0.956949
 **********
 **   18 **HESSE 
 **********

 FCN=   5060.664     FROM HESSE     STATUS=OK           407 CALLS     2808 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2817        2.5026        .15302E-03   -1.5482    
   2  Prefactor     .10000E-03    9.2682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    92.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6659        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.743        12.684        .87943E-04   -1.4797    
   8  Prefactor     15.576        15.415        .10149E-03   -1.4918    
   9  Prefactor     40.178        24.647        .63239E-04   -1.4439    
  10  Prefactor     .10000E-03    14.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    47.279        .41267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8124        .15241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.059        15.457        .10005E-03   -1.4906    
  14  Prefactor     .10000E-03    80.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10014E-03    7.4386        .37144E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4783        .10824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9291        1.2215        .60915E-04   -1.5430    
  19  Prefactor     .10000E-03    137.87        .57571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3721        .12323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4431        32.108        .35912E-03   -1.5468    
  22  norm          4.5613        9.2312        .94242E-03   -1.5281    
  23  Normalizat    .80091        .26645        .31556E-03   -1.0003    
  24  Prefactor     .95695        .16021        .17836E-03   -.94179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34168e-10
Minuit parameter uncertainties:
  1  2.50283
  2  2.01308e-06
  3  2.63816e-05
  4  9.47421e-06
  5  3.44135e-05
  6  3.0863e-07
  7  12.6857
  8  15.4186
  9  24.6535
  10  1.30646e-05
  11  0.000256243
  12  1.61083e-07
  13  15.4609
  14  2.05566e-05
  15  0.00205431
  16  6.83346e-06
  17  1.97385e-05
  18  1.2215
  19  0.00044873
  20  5.85944e-06
  21  13.6217
  22  9.23406
  23  0.266888
  24  0.160288
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.606e+01  1.546e+01  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:  9.569e-01  1.603e-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:  8.009e-01  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.40e-08 +/- 7.12e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.74e-05

TS (Fixed Index): 1.64
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258206/likelihoodResults_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.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) = 5058.00123812
delta logL = 2.6629434915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5057.86091045
delta logL = 2.80327115751

Fit tolerance = 1e-08

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

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

 FCN=   5057.861     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      288 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10409        .78600        .23458E-02    .16059E-02
   2  Index         7.1281        3.1617        .10655        .93405E-04
   3  Normalizat    .64784        .81558E-01    .78242E-01    .26811E-04
   4  Prefactor     1.0320        .50314E-01    .41088E-01   -.62847E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.104087
  Index      = 7.12812
  Normalizat = 0.647844
  Prefactor  = 1.03196
 **********
 **   18 **HESSE 
 **********

 FCN=   5057.861     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      321 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10409        1.1895        .10466E-04   -1.5643    
   2  Index         7.1281        3.7821        .45659E-02    .43965    
   3  Normalizat    .64784        .24445        .34643E-03   -1.0599    
   4  Prefactor     1.0320        .14731        .17221E-03   -.91671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.81657e-11
Minuit parameter uncertainties:
  1  0.703428
  2  4.47838
  3  0.24486
  4  0.14737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258206': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5057.86090277
delta logL = 2.80327883588

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.041e-01  7.034e-01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  7.128e+00  4.478e+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:  1.032e+00  1.474e-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:  6.478e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.87
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 7.13 +/- 4.48
Photon Flux (Free Index): 1.80e-07 +/- 9.22e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.26e-05

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/258206/cmap_HighResolution_380851201_381110401_4FGL_J2219.2-0342_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', photon_flux='7.40e-08', energy_flux2='2.15e-05', photon_flux_error='7.12e-08', dlogl='2.80e+00', energy_flux='1.81e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-28 09:15:18.029777', photon_index_error2='4.48', photon_index2='7.13', ts='1.64', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='1.26e-05', EG='0.80', time_epoch_completed='1632845718.03', return_code='0', job_id='258206', GAL2='1.03', EG2='0.65', return_code2='102', energy_flux_error='1.74e-05', photon_flux_error2='9.22e-08', ts2='7.87', photon_index='2.68' WHERE bin_id='546' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 258206: <4FGL_J2219.2-0342_daily_bin546> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin546> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:34 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:36 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:05:36 2021
Terminated at Tue Sep 28 09:15:18 2021
Results reported at Tue Sep 28 09:15:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin546 334.823 -3.7102 380851201 381110401 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 :                                   567.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             362.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            584 sec.

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

