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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1353
RA = 334.823, Dec = -3.7102
tmin = 590025601, tmax = 590284801
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='261523', job_status='RUN', time_executed='2021-09-28 09:19:13.537870', time_epoch_executed='1632845953.54' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261523

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261523/ft1_4FGL_J2219.2-0342_daily_bin1353.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261523/ft1_4FGL_J2219.2-0342_daily_bin1353.fits outfile=/scratch/kocevski/261523/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1353.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=590025601.0 tmax=590284801.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.92
user 3.70
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.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/261523/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1353.fits evtable="EVENTS" outfile="/scratch/kocevski/261523/ft1_filtered_4FGL_J2219.2-0342_daily_bin1353.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261523/ft1_filtered_4FGL_J2219.2-0342_daily_bin1353.fits" evtable="EVENTS" scfile=/scratch/kocevski/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.fits sctable="SC_DATA" outfile=/scratch/kocevski/261523/ltcube_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.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/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.fits
.....................!
real 11.73
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261523/ft1_filtered_4FGL_J2219.2-0342_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.fits sctable="SC_DATA" expcube=/scratch/kocevski/261523/ltcube_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.fits outfile=/scratch/kocevski/261523/expmap_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.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/261523/ltcube_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.fits
.....................!
real 191.89
user 186.58
sys 4.95

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/261523/ft1_filtered_4FGL_J2219.2-0342_daily_bin1353.fits scfile=/scratch/kocevski/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.fits outfile=/scratch/kocevski/261523/cmap_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261523/ft1_filtered_4FGL_J2219.2-0342_daily_bin1353.fits scfile=/scratch/kocevski/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.fits outfile=/scratch/kocevski/261523/cmap_HighResolution_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261523/ft1_filtered_4FGL_J2219.2-0342_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261523/Model_4FGL_J2219.2-0342_daily_bin1353.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/261523/ft1_filtered_4FGL_J2219.2-0342_daily_bin1353.fits.....................!
real 81.19
user 79.72
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261523/ft1_filtered_4FGL_J2219.2-0342_daily_bin1353.fits', '/scratch/kocevski/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.fits', expMap='/scratch/kocevski/261523/expmap_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.fits', expCube='/scratch/kocevski/261523/ltcube_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261523/Model_4FGL_J2219.2-0342_daily_bin1353.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/261523/ft1_filtered_4FGL_J2219.2-0342_daily_bin1353.fits
Spacecraft file(s): /scratch/kocevski/261523/ft2_4FGL_J2219.2-0342_daily_bin1353.fits
Exposure map: /scratch/kocevski/261523/expmap_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.fits
Exposure cube: /scratch/kocevski/261523/ltcube_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261523/Model_4FGL_J2219.2-0342_daily_bin1353.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8464.37366002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.994       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.184       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.599       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5758       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    431.78       1.0000         .10000E-03   10000.    
    20 'norm      '    19.627       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8438       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5789       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83138       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96482       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=   8464.125     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2831 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .75655       -.12472E-07** at limit **
   2  Prefactor     27.329        37.072       -.14060E-05   -.18083E-04
   3  Prefactor     .10000E-03    14.091       -.88050E-05** at limit **
   4  Prefactor     .10000E-03    15.216        .16838E-04** at limit **
   5  Prefactor     .10000E-03    2.8390       -.82377E-08** at limit **
   6  Prefactor     .10000E-03    3.9740        .14144E-06** at limit **
   7  Prefactor     15.991        12.510        .24273E-05   -.11057E-03
   8  Prefactor     21.384        19.119        .98140E-06   -.13862E-05
   9  Prefactor     .10000E-03    11.559        .79505E-05** at limit **
  10  Prefactor     46.290        27.096       -.64291E-06   -.16382E-03
  11  Prefactor     48.186        15.544       -.92368E-06   -.32039E-04
  12  Prefactor     .10000E-03    13.680       -.14896E-04** at limit **
  13  Prefactor     28.719        13.106       -.54413E-05   -.70922E-03
  14  Prefactor     18.605        49.621        .10920E-04   -.61875E-05
  15  Prefactor     .10001E-03    2.7884        .17306E-05** at limit **
  16  norm          2.5757        2.7396       -.25748E-06   -.55357E-03
  17  Prefactor     .10000E-03    93.715       -.74767E-05** at limit **
  18  norm          .10000E-03    .31327       -.11133E-06** at limit **
  19  Prefactor     431.79        116.80        .55560E-05   -.56057E-04
  20  norm          19.633        9.5980       -.14492E-05   -.20723E-03
  21  Prefactor     3.8413        12.262        .50247E-05   -.11489E-03
  22  norm          2.5784        13.365        .13263E-05   -.17878E-03
  23  Normalizat    .83124        .22680        .68602E-06   -.26652E-03
  24  Prefactor     .96493        .12318       -.92031E-07   -.32108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.3294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9912
  Prefactor  = 21.3839
  Prefactor  = 0.0001
  Prefactor  = 46.2905
  Prefactor  = 48.1855
  Prefactor  = 0.0001
  Prefactor  = 28.7187
  Prefactor  = 18.6052
  Prefactor  = 0.000100015
  norm       = 2.57571
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 431.788
  norm       = 19.6329
  Prefactor  = 3.84128
  norm       = 2.57839
  Normalizat = 0.831242
  Prefactor  = 0.964933
 **********
 **   18 **HESSE 
 **********

 FCN=   8464.125     FROM HESSE     STATUS=OK           397 CALLS     3228 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .76526        .78058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.329        37.131        .76630E-04   -1.4662    
   3  Prefactor     .10000E-03    14.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8510        .15137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0350        .17897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.991        12.493        .10015E-03   -1.4908    
   8  Prefactor     21.384        19.116        .86613E-04   -1.4783    
   9  Prefactor     .10000E-03    11.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.290        27.122        .58930E-04   -1.4346    
  11  Prefactor     48.186        15.578        .57767E-04   -1.4319    
  12  Prefactor     .10000E-03    13.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.719        12.984        .74767E-04   -1.4636    
  14  Prefactor     18.605        49.567        .92871E-04   -1.4845    
  15  Prefactor     .10001E-03    8.4831        .28847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5757        2.7310        .15051E-03   -1.5387    
  17  Prefactor     .10000E-03    93.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .63431        .10015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     431.79        118.85        .98398E-04   -1.1522    
  20  norm          19.633        9.7565        .89925E-04   -1.4821    
  21  Prefactor     3.8413        12.213        .20584E-03   -1.5316    
  22  norm          2.5784        13.337        .25414E-03   -1.5387    
  23  Normalizat    .83124        .26509        .38379E-03   -.98920    
  24  Prefactor     .96493        .14505        .21104E-03   -.93908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40247e-09
Minuit parameter uncertainties:
  1  8.19622e-07
  2  37.1626
  3  6.45803e-06
  4  4.31323e-06
  5  3.22133e-06
  6  2.87354e-06
  7  12.4952
  8  19.1216
  9  2.09612e-05
  10  27.1291
  11  15.579
  12  3.6925e-06
  13  12.9848
  14  49.6774
  15  0.000706117
  16  2.73112
  17  2.58881e-05
  18  9.18351e-06
  19  118.916
  20  9.75733
  21  12.221
  22  11.7322
  23  0.265506
  24  0.145105
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.872e+01  1.298e+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.649e-01  1.451e-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.312e-01  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.81
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 5.98e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 1.46e-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) = 8463.71152862
delta logL = 0.413758567322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8463.69242511
delta logL = 0.432862076541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.385       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2333       1.0000          .0000       10.000    
     3 'Normalizat'    .78238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98769       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=   8463.692     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      306 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.374        17.320        .45485E-03    .53018E-04
   2  Index         3.2325        .77898        .60189E-02    .52330E-03
   3  Normalizat    .78223        .25118        .39445E-03   -.11529E-06
   4  Prefactor     .98813        .14637        .20887E-03   -.21772E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3743
  Index      = 3.23249
  Normalizat = 0.782229
  Prefactor  = 0.98813
 **********
 **   18 **HESSE 
 **********

 FCN=   8463.692     FROM HESSE     STATUS=OK            27 CALLS      333 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.374        15.371        .90969E-04   -1.4827    
   2  Index         3.2325        .69141        .12038E-02   -.36131    
   3  Normalizat    .78223        .25073        .15778E-04   -1.0073    
   4  Prefactor     .98813        .14595        .83548E-05   -.93126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.3814e-12
Minuit parameter uncertainties:
  1  15.3741
  2  0.693949
  3  0.251102
  4  0.146006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261523': 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) = 8463.69240828
delta logL = 0.432878906151

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.937e+01  1.537e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.232e+00  6.939e-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:  9.881e-01  1.460e-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:  7.822e-01  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.69
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.23 +/- 0.69
Photon Flux (Free Index): 1.64e-07 +/- 7.41e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.31e-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/261523/cmap_HighResolution_590025601_590284801_4FGL_J2219.2-0342_daily_bin1353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='2.97e-05', photon_flux_error='5.98e-08', dlogl='4.33e-01', energy_flux='3.23e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-28 09:31:21.552882', photon_index_error2='0.69', photon_index2='3.23', ts='7.81', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.83', time_epoch_completed='1632846681.55', return_code='0', job_id='261523', GAL2='0.99', EG2='0.78', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='7.41e-08', ts2='8.69', photon_index='2.68' WHERE bin_id='1353' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:31:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 261523: <4FGL_J2219.2-0342_daily_bin1353> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1353 334.823 -3.7102 590025601 590284801 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 :                                   725.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

