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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1001
RA = 334.823, Dec = -3.7102
tmin = 498787201, tmax = 499046401
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='259925', job_status='RUN', time_executed='2021-09-28 09:14:10.766209', time_epoch_executed='1632845650.77' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259925

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259925/ft1_4FGL_J2219.2-0342_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259925/ft2_4FGL_J2219.2-0342_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259925/ft1_4FGL_J2219.2-0342_daily_bin1001.fits outfile=/scratch/kocevski/259925/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1001.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=498787201.0 tmax=499046401.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 5.05
user 4.81
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259925/ft2_4FGL_J2219.2-0342_daily_bin1001.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/259925/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1001.fits evtable="EVENTS" outfile="/scratch/kocevski/259925/ft1_filtered_4FGL_J2219.2-0342_daily_bin1001.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/259925/ft1_filtered_4FGL_J2219.2-0342_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/259925/ft2_4FGL_J2219.2-0342_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/259925/ltcube_498787201_499046401_4FGL_J2219.2-0342_daily_bin1001.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/259925/ft2_4FGL_J2219.2-0342_daily_bin1001.fits
.....................!
real 11.76
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259925/ft1_filtered_4FGL_J2219.2-0342_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/259925/ft2_4FGL_J2219.2-0342_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/259925/ltcube_498787201_499046401_4FGL_J2219.2-0342_daily_bin1001.fits outfile=/scratch/kocevski/259925/expmap_498787201_499046401_4FGL_J2219.2-0342_daily_bin1001.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/259925/ltcube_498787201_499046401_4FGL_J2219.2-0342_daily_bin1001.fits
.....................!
real 192.04
user 186.35
sys 5.39

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/259925/ft1_filtered_4FGL_J2219.2-0342_daily_bin1001.fits scfile=/scratch/kocevski/259925/ft2_4FGL_J2219.2-0342_daily_bin1001.fits outfile=/scratch/kocevski/259925/cmap_498787201_499046401_4FGL_J2219.2-0342_daily_bin1001.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259925/ft1_filtered_4FGL_J2219.2-0342_daily_bin1001.fits scfile=/scratch/kocevski/259925/ft2_4FGL_J2219.2-0342_daily_bin1001.fits outfile=/scratch/kocevski/259925/cmap_HighResolution_498787201_499046401_4FGL_J2219.2-0342_daily_bin1001.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259925/ft1_filtered_4FGL_J2219.2-0342_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/259925/ft2_4FGL_J2219.2-0342_daily_bin1001.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259925/Model_4FGL_J2219.2-0342_daily_bin1001.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/259925/ft1_filtered_4FGL_J2219.2-0342_daily_bin1001.fits.....................!
real 68.16
user 66.82
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21923       1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.670       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1276       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94940       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6646       1.0000         .10000E-03   10000.    
    16 'norm      '    5.2139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2586       1.0000         .10000E-03   10000.    
    19 'Prefactor '    152.92       1.0000         .10000E-03   10000.    
    20 'norm      '    48.519       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.804       1.0000         .10000E-03   10000.    
    22 'norm      '    34.801       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2392       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79702       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=   6875.939     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2752 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22132        1.5156       -.19218E-06   -.91425E-04
   2  Prefactor     57.718        48.213        .14250E-05    .66410E-04
   3  Prefactor     .10000E-03    36.296        .89875E-06** at limit **
   4  Prefactor     .10000E-03    41.167       -.16287E-05** at limit **
   5  Prefactor     .10000E-03    2.4933       -.26522E-06** at limit **
   6  Prefactor     3.1115        6.1589       -.28933E-06    .90692E-05
   7  Prefactor     .10000E-03    6.3030       -.18263E-06** at limit **
   8  Prefactor     .10000E-03    13.437       -.25634E-06** at limit **
   9  Prefactor     1.1171        30.600        .29702E-05   -.62168E-05
  10  Prefactor     .10000E-03    5.7107        .58170E-08** at limit **
  11  Prefactor     .93381        8.5922        .21427E-06   -.68746E-04
  12  Prefactor     12.973        38.077       -.14251E-05   -.13272E-04
  13  Prefactor     .10000E-03    4.2095        .20441E-06** at limit **
  14  Prefactor     .10000E-03    26.237       -.13601E-06** at limit **
  15  Prefactor     3.6656        4.6664       -.17424E-06    .51672E-05
  16  norm          5.2145        4.7553       -.16077E-06   -.52778E-04
  17  Prefactor     .10000E-03    106.13       -.36564E-07** at limit **
  18  norm          2.2592        1.2805       -.17522E-07   -.39756E-04
  19  Prefactor     152.98        137.94       -.50098E-05   -.32461E-04
  20  norm          48.491        12.149        .72205E-06    .10196E-03
  21  Prefactor     17.806        14.014       -.58576E-07    .76052E-08
  22  norm          34.806        18.465       -.18336E-06    .50122E-05
  23  Normalizat    1.2380        .28026        .35465E-05    .27232E-04
  24  Prefactor     .79772        .15013       -.17838E-05    .28577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.221315
  Prefactor  = 57.718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.11154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.11711
  Prefactor  = 0.0001
  Prefactor  = 0.933807
  Prefactor  = 12.9732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.6656
  norm       = 5.21454
  Prefactor  = 0.0001
  norm       = 2.25918
  Prefactor  = 152.975
  norm       = 48.4906
  Prefactor  = 17.8063
  norm       = 34.8061
  Normalizat = 1.23796
  Prefactor  = 0.797724
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.939     FROM HESSE     STATUS=OK           401 CALLS     3153 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22132        5.3702        .18913E-02   -1.5614    
   2  Prefactor     57.718        49.158        .52827E-04   -1.4187    
   3  Prefactor     .10000E-03    36.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5060        .12808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1115        6.1357        .23003E-03   -1.5355    
   7  Prefactor     .10000E-03    6.3488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1171        30.830        .22031E-02   -1.5497    
  10  Prefactor     .10000E-03    5.7151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .93381        26.942        .45840E-02   -1.5515    
  12  Prefactor     12.973        38.155        .11128E-03   -1.4987    
  13  Prefactor     .10000E-03    4.2196        .16607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6656        4.6549        .19050E-03   -1.5325    
  16  norm          5.2145        4.7471        .16232E-03   -1.5251    
  17  Prefactor     .10000E-03    106.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2592        1.2831        .68316E-04   -1.5407    
  19  Prefactor     152.98        139.56        .32597E-04   -1.3228    
  20  norm          48.491        12.339        .57569E-04   -1.4314    
  21  Prefactor     17.806        14.014        .94921E-04   -1.4864    
  22  norm          34.806        18.479        .67931E-04   -1.4527    
  23  Normalizat    1.2380        .30482        .32632E-03   -.85438    
  24  Prefactor     .79772        .16633        .22812E-03   -.99812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58718e-08
Minuit parameter uncertainties:
  1  2.1801
  2  49.1929
  3  0.000121027
  4  0.000260899
  5  9.14571e-06
  6  6.13695
  7  1.42514e-05
  8  2.1023e-05
  9  11.7434
  10  2.74367e-06
  11  10.0362
  12  38.2266
  13  3.96741e-06
  14  1.76869e-05
  15  4.65533
  16  4.74744
  17  3.07581e-05
  18  1.28316
  19  139.862
  20  12.34
  21  14.0162
  22  18.482
  23  0.305263
  24  0.166436
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  3.967e-06  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:  7.977e-01  1.664e-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.238e+00  3.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259925/likelihoodResults_498787201_499046401_4FGL_J2219.2-0342_daily_bin1001.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) = 6875.9403722
delta logL = -0.00112704477851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6875.93924511
delta logL = 4.41432348453e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6706       1.0000          .0000       10.000    
     3 'Normalizat'    1.2380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79773       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=   6875.939     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.428        .16697E-01** at limit **
   2  Index         2.3299        6.2958        .50000       -.45247E-08
   3  Normalizat    1.2380        .12204E-01    .32632E-03    .12849E-03
   4  Prefactor     .79772        .70538E-02    .22812E-03    .19432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32988
  Normalizat = 1.23796
  Prefactor  = 0.797722
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.939     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    187.49        .17326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3299        6.0695        .50000       -.56335    
   3  Normalizat    1.2380        .39487E-01    .13053E-04   -.85438    
   4  Prefactor     .79772        .22822E-01    .91247E-05   -.99812    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.05539e-10
Minuit parameter uncertainties:
  1  0.000152379
  2  775.705
  3  0.0394877
  4  0.0228226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259925': 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) = 6875.93924415
delta logL = 1.00201850728e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.524e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.330e+00  7.757e+02  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:  7.977e-01  2.282e-02  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.238e+00  3.949e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/259925/cmap_HighResolution_498787201_499046401_4FGL_J2219.2-0342_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-28 09:25:56.944127', job_id='259925', GAL2='0.80', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632846356.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1001' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 259925: <4FGL_J2219.2-0342_daily_bin1001> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1001> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:54 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:55 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:55 2021
Terminated at Tue Sep 28 09:25:57 2021
Results reported at Tue Sep 28 09:25:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1001 334.823 -3.7102 498787201 499046401 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 :                                   705.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             252.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

