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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1104
RA = 334.823, Dec = -3.7102
tmin = 525484801, tmax = 525744001
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='261129', job_status='RUN', time_executed='2021-09-28 09:18:00.238061', time_epoch_executed='1632845880.24' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261129

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261129/ft1_4FGL_J2219.2-0342_daily_bin1104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261129/ft2_4FGL_J2219.2-0342_daily_bin1104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261129/ft1_4FGL_J2219.2-0342_daily_bin1104.fits outfile=/scratch/kocevski/261129/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1104.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=525484801.0 tmax=525744001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.63
user 3.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261129/ft2_4FGL_J2219.2-0342_daily_bin1104.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/261129/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1104.fits evtable="EVENTS" outfile="/scratch/kocevski/261129/ft1_filtered_4FGL_J2219.2-0342_daily_bin1104.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261129/ft1_filtered_4FGL_J2219.2-0342_daily_bin1104.fits" evtable="EVENTS" scfile=/scratch/kocevski/261129/ft2_4FGL_J2219.2-0342_daily_bin1104.fits sctable="SC_DATA" outfile=/scratch/kocevski/261129/ltcube_525484801_525744001_4FGL_J2219.2-0342_daily_bin1104.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/261129/ft2_4FGL_J2219.2-0342_daily_bin1104.fits
.....................!
real 12.02
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261129/ft1_filtered_4FGL_J2219.2-0342_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/261129/ft2_4FGL_J2219.2-0342_daily_bin1104.fits sctable="SC_DATA" expcube=/scratch/kocevski/261129/ltcube_525484801_525744001_4FGL_J2219.2-0342_daily_bin1104.fits outfile=/scratch/kocevski/261129/expmap_525484801_525744001_4FGL_J2219.2-0342_daily_bin1104.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/261129/ltcube_525484801_525744001_4FGL_J2219.2-0342_daily_bin1104.fits
.....................!
real 191.77
user 186.25
sys 5.07

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/261129/ft1_filtered_4FGL_J2219.2-0342_daily_bin1104.fits scfile=/scratch/kocevski/261129/ft2_4FGL_J2219.2-0342_daily_bin1104.fits outfile=/scratch/kocevski/261129/cmap_525484801_525744001_4FGL_J2219.2-0342_daily_bin1104.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261129/ft1_filtered_4FGL_J2219.2-0342_daily_bin1104.fits scfile=/scratch/kocevski/261129/ft2_4FGL_J2219.2-0342_daily_bin1104.fits outfile=/scratch/kocevski/261129/cmap_HighResolution_525484801_525744001_4FGL_J2219.2-0342_daily_bin1104.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.56
user 0.43
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261129/ft1_filtered_4FGL_J2219.2-0342_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/261129/ft2_4FGL_J2219.2-0342_daily_bin1104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261129/Model_4FGL_J2219.2-0342_daily_bin1104.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/261129/ft1_filtered_4FGL_J2219.2-0342_daily_bin1104.fits.....................!
real 71.75
user 70.36
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0285       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4857       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4558       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.323       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10574E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.329       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.477       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0660       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5173       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.156       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9550       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.731       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .54370       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0354       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=   7693.568     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2357 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0285        2.1748        .11420E-06   -.51938E-04
   2  Prefactor     2.4795        52.711        .36752E-05    .12889E-03
   3  Prefactor     .10000E-03    10.538        .41518E-07** at limit **
   4  Prefactor     .10000E-03    14.796       -.53830E-07** at limit **
   5  Prefactor     .10000E-03    1.7689        .51456E-07** at limit **
   6  Prefactor     .10000E-03    1.1439        .18105E-07** at limit **
   7  Prefactor     9.4597        10.320        .43914E-06    .19996E-03
   8  Prefactor     .10000E-03    17.204        .38469E-06** at limit **
   9  Prefactor     10.338        12.762        .10254E-06   -.22933E-04
  10  Prefactor     .10535E-03    11.334       -.98895E-06** at limit **
  11  Prefactor     14.328        7.7774        .37046E-07   -.10106E-03
  12  Prefactor     35.481        30.254        .10633E-06   -.89220E-04
  13  Prefactor     19.257        9.9936       -.52625E-06    .21828E-04
  14  Prefactor     .10000E-03    17.884       -.92919E-06** at limit **
  15  Prefactor     3.0657        3.0886        .20245E-05   -.27904E-03
  16  norm          1.7187        2.4389        .13406E-06   -.11486E-03
  17  Prefactor     .10000E-03    17.170        .56822E-06** at limit **
  18  norm          1.5172        .82405        .25249E-07   -.59566E-04
  19  Prefactor     31.160        23.118       -.11605E-05   -.27469E-03
  20  norm          2.9544        1.9132        .30443E-06   -.17679E-03
  21  Prefactor     .10000E-03    6.0513       -.44273E-07** at limit **
  22  norm          10.728        12.518        .18357E-05   -.65460E-04
  23  Normalizat    .54376        .18342       -.76765E-06    .22916E-04
  24  Prefactor     1.0354        .11083       -.23288E-06    .10527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02853
  Prefactor  = 2.47946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.45967
  Prefactor  = 0.0001
  Prefactor  = 10.3383
  Prefactor  = 0.000105353
  Prefactor  = 14.3282
  Prefactor  = 35.4808
  Prefactor  = 19.2569
  Prefactor  = 0.000100002
  Prefactor  = 3.0657
  norm       = 1.71872
  Prefactor  = 0.000100001
  norm       = 1.51722
  Prefactor  = 31.1602
  norm       = 2.95444
  Prefactor  = 0.0001
  norm       = 10.7284
  Normalizat = 0.543755
  Prefactor  = 1.03539
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.568     FROM HESSE     STATUS=OK           407 CALLS     2764 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0285        2.1616        .10376E-03   -1.5360    
   2  Prefactor     2.4795        52.426        .25928E-03   -1.5393    
   3  Prefactor     .10000E-03    10.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7716        .11392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1513        .91593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4597        10.307        .13033E-03   -1.5093    
   8  Prefactor     .10000E-03    17.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.338        12.752        .12471E-03   -1.5065    
  10  Prefactor     .10535E-03    12.500        .82681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.328        7.7828        .10581E-03   -1.4951    
  12  Prefactor     35.481        30.254        .67283E-04   -1.4516    
  13  Prefactor     19.257        9.9871        .91272E-04   -1.4830    
  14  Prefactor     .10000E-03    17.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0657        3.0959        .72643E-03   -1.5358    
  16  norm          1.7187        2.4129        .15421E-03   -1.5446    
  17  Prefactor     .10000E-03    17.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5172        .82063        .56539E-04   -1.5462    
  19  Prefactor     31.160        23.832        .71783E-04   -1.4591    
  20  norm          2.9544        1.9678        .72004E-04   -1.5364    
  21  Prefactor     .10000E-03    6.0901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.728        12.533        .61152E-03   -1.5053    
  23  Normalizat    .54376        .20477        .35959E-03   -1.1043    
  24  Prefactor     1.0354        .12577        .17068E-03   -.91559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02597e-09
Minuit parameter uncertainties:
  1  2.16163
  2  22.8249
  3  2.21561e-06
  4  5.26636e-05
  5  9.69757e-08
  6  1.09689e-06
  7  10.3088
  8  0.000185752
  9  12.7553
  10  0.0163632
  11  7.78338
  12  30.2673
  13  9.98799
  14  0.000379064
  15  3.09606
  16  2.41307
  17  0.000248081
  18  0.820639
  19  23.8395
  20  1.96786
  21  2.17063e-06
  22  12.5359
  23  0.20505
  24  0.125806
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.926e+01  9.988e+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:  1.035e+00  1.258e-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:  5.438e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.87e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.12e-05

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) = 7693.38596487
delta logL = 0.18235423833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7693.38591978
delta logL = 0.182399329107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.220       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3488       1.0000          .0000       10.000    
     3 'Normalizat'    .56865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0238       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=   7693.386     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      281 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.224        11.792        .84974E-04    .15252E-04
   2  Index         2.3486        .51657        .84214E-02    .10955E-04
   3  Normalizat    .56865        .19807        .35214E-03    .76385E-04
   4  Prefactor     1.0237        .12564        .17152E-03   -.34202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2238
  Index      = 2.34863
  Normalizat = 0.56865
  Prefactor  = 1.02368
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.386     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.224        11.715        .33989E-05   -1.4765    
   2  Index         2.3486        .51290        .33686E-03   -.55892    
   3  Normalizat    .56865        .19813        .14086E-04   -1.0933    
   4  Prefactor     1.0237        .12566        .68607E-05   -.91944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93969e-11
Minuit parameter uncertainties:
  1  11.7166
  2  0.514157
  3  0.198376
  4  0.125692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261129': 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) = 7693.38591683
delta logL = 0.182402285224

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.222e+01  1.172e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.349e+00  5.142e-01  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.024e+00  1.257e-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:  5.686e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.38
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.35 +/- 0.51
Photon Flux (Free Index): 7.43e-08 +/- 4.77e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.67e-05

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/261129/cmap_HighResolution_525484801_525744001_4FGL_J2219.2-0342_daily_bin1104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.87e-08', energy_flux2='2.61e-05', photon_flux_error='4.60e-08', dlogl='1.82e-01', energy_flux='2.17e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2021-09-28 09:28:29.046533', photon_index_error2='0.51', photon_index2='2.35', ts='7.06', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.54', time_epoch_completed='1632846509.05', return_code='0', job_id='261129', GAL2='1.02', EG2='0.57', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.77e-08', ts2='7.38', photon_index='2.68' WHERE bin_id='1104' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:28:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 261129: <4FGL_J2219.2-0342_daily_bin1104> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1104> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:15 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:17 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:15:17 2021
Terminated at Tue Sep 28 09:28:29 2021
Results reported at Tue Sep 28 09:28:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1104 334.823 -3.7102 525484801 525744001 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 :                                   628.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

