/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 229 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin381
RA = 334.823, Dec = -3.7102
tmin = 338083201, tmax = 338342401
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='257957', job_status='RUN', time_executed='2021-09-28 09:09:13.653021', time_epoch_executed='1632845353.65' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257957

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257957/ft1_4FGL_J2219.2-0342_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257957/ft2_4FGL_J2219.2-0342_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257957/ft1_4FGL_J2219.2-0342_daily_bin381.fits outfile=/scratch/kocevski/257957/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin381.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.70
user 6.40
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257957/ft1_filtered_4FGL_J2219.2-0342_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/257957/ft2_4FGL_J2219.2-0342_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/257957/ltcube_338083201_338342401_4FGL_J2219.2-0342_daily_bin381.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/257957/ft2_4FGL_J2219.2-0342_daily_bin381.fits
.....................!
real 11.40
user 11.08
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257957/ft1_filtered_4FGL_J2219.2-0342_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/257957/ft2_4FGL_J2219.2-0342_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/257957/ltcube_338083201_338342401_4FGL_J2219.2-0342_daily_bin381.fits outfile=/scratch/kocevski/257957/expmap_338083201_338342401_4FGL_J2219.2-0342_daily_bin381.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/257957/ltcube_338083201_338342401_4FGL_J2219.2-0342_daily_bin381.fits
.....................!
real 190.75
user 185.07
sys 5.30

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/257957/ft1_filtered_4FGL_J2219.2-0342_daily_bin381.fits scfile=/scratch/kocevski/257957/ft2_4FGL_J2219.2-0342_daily_bin381.fits outfile=/scratch/kocevski/257957/cmap_338083201_338342401_4FGL_J2219.2-0342_daily_bin381.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/257957/ft1_filtered_4FGL_J2219.2-0342_daily_bin381.fits scfile=/scratch/kocevski/257957/ft2_4FGL_J2219.2-0342_daily_bin381.fits outfile=/scratch/kocevski/257957/cmap_HighResolution_338083201_338342401_4FGL_J2219.2-0342_daily_bin381.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/257957/ft1_filtered_4FGL_J2219.2-0342_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/257957/ft2_4FGL_J2219.2-0342_daily_bin381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257957/Model_4FGL_J2219.2-0342_daily_bin381.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/257957/ft1_filtered_4FGL_J2219.2-0342_daily_bin381.fits.....................!
real 64.96
user 63.57
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8599       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11151E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0781       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6766       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3089       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.306       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.469       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4726       1.0000         .10000E-03   10000.    
    16 'norm      '    26.570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.917       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5059       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.513       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .72635       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96168       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=   6649.523     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2716 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8585        2.8071       -.47900E-07   -.99200E-04
   2  Prefactor     .10000E-03    96.775       -.26386E-05** at limit **
   3  Prefactor     .10000E-03    15.232        .56193E-05** at limit **
   4  Prefactor     4.1014        224.19        .84722E-04    .18582E-04
   5  Prefactor     7.6751        8.0695       -.39208E-05   -.32007E-03
   6  Prefactor     1.3098        1.2888        .23548E-06   -.18015E-02
   7  Prefactor     12.470        11.322       -.50079E-06   -.33549E-04
   8  Prefactor     .10000E-03    4.4835       -.51613E-07** at limit **
   9  Prefactor     .10000E-03    5.8772        .38516E-07** at limit **
  10  Prefactor     .10000E-03    9.9175       -.10495E-05** at limit **
  11  Prefactor     17.310        13.228        .23799E-06   -.59155E-05
  12  Prefactor     .10000E-03    31.648        .48060E-05** at limit **
  13  Prefactor     11.470        11.939        .37374E-07   -.83954E-05
  14  Prefactor     .10000E-03    23.618       -.59074E-05** at limit **
  15  Prefactor     4.4727        3.8430        .20293E-06    .80177E-05
  16  norm          26.572        5.7341        .12739E-05    .15962E-07
  17  Prefactor     64.895        90.270       -.23156E-04   -.40096E-05
  18  norm          1.5059        .89959       -.73326E-08   -.99789E-04
  19  Prefactor     .10000E-03    10.866        .44473E-05** at limit **
  20  norm          .10000E-03    .51412        .33587E-07** at limit **
  21  Prefactor     .10000E-03    12.213       -.69245E-05** at limit **
  22  norm          22.516        17.715       -.15684E-06   -.30407E-05
  23  Normalizat    .72612        .21604       -.22508E-05   -.28832E-04
  24  Prefactor     .96182        .12244        .42249E-06   -.18565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8585
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.10139
  Prefactor  = 7.67506
  Prefactor  = 1.30978
  Prefactor  = 12.4701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3098
  Prefactor  = 0.0001
  Prefactor  = 11.4699
  Prefactor  = 0.0001
  Prefactor  = 4.47269
  norm       = 26.5716
  Prefactor  = 64.8951
  norm       = 1.50594
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.5156
  Normalizat = 0.726124
  Prefactor  = 0.961815
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.523     FROM HESSE     STATUS=OK           399 CALLS     3115 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8585        2.8008        .12956E-03   -1.5370    
   2  Prefactor     .10000E-03    97.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1014        223.00        .19965E-03   -1.5303    
   5  Prefactor     7.6751        8.0362        .14473E-03   -1.5154    
   6  Prefactor     1.3098        9.5074        .19276E-02   -1.5479    
   7  Prefactor     12.470        11.335        .11343E-03   -1.5002    
   8  Prefactor     .10000E-03    4.4848        .16863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.310        13.342        .96275E-04   -1.4876    
  12  Prefactor     .10000E-03    31.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.470        11.945        .11829E-03   -1.5030    
  14  Prefactor     .10000E-03    23.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4727        3.8339        .13866E-03   -1.5285    
  16  norm          26.572        5.7470        .77717E-04   -1.4677    
  17  Prefactor     64.895        90.114        .49809E-04   -1.4095    
  18  norm          1.5059        .89809        .57980E-04   -1.5463    
  19  Prefactor     .10000E-03    10.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .73082        .11348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.516        17.823        .84419E-04   -1.4759    
  23  Normalizat    .72612        .25877        .35045E-03   -1.0287    
  24  Prefactor     .96182        .14401        .18624E-03   -.94013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20974e-08
Minuit parameter uncertainties:
  1  2.80091
  2  0.000459138
  3  8.85824e-06
  4  60.7241
  5  8.03734
  6  7.05897
  7  11.3372
  8  7.84711e-06
  9  1.13932e-06
  10  2.98298e-06
  11  13.3443
  12  3.49362e-05
  13  11.9479
  14  1.81145e-05
  15  3.8341
  16  5.74708
  17  90.3045
  18  0.898099
  19  5.05678e-06
  20  8.84341e-07
  21  3.80794e-05
  22  17.8275
  23  0.259209
  24  0.144063
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.147e+01  1.195e+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.618e-01  1.441e-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.261e-01  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 5.50e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/257957/likelihoodResults_338083201_338342401_4FGL_J2219.2-0342_daily_bin381.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) = 6649.49579294
delta logL = 0.0270079099846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6649.48987811
delta logL = 0.0329227407765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.248       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9242       1.0000          .0000       10.000    
     3 'Normalizat'    .71518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96650       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=   6649.490     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.249        12.981        .12516E-03   -.17694E-03
   2  Index         2.9243        1.0543        .10496E-01   -.52260E-04
   3  Normalizat    .71513        .23909        .35290E-03    .15260E-03
   4  Prefactor     .96653        .14334        .18583E-03    .33913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.249
  Index      = 2.92428
  Normalizat = 0.715134
  Prefactor  = 0.966528
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.490     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.249        12.222        .50065E-05   -1.5068    
   2  Index         2.9243        .99232        .41985E-03   -.42810    
   3  Normalizat    .71513        .23902        .14116E-04   -1.0330    
   4  Prefactor     .96653        .14322        .37166E-04   -.93854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14613e-10
Minuit parameter uncertainties:
  1  12.2249
  2  1.00036
  3  0.239373
  4  0.143272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257957': 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) = 6649.48987808
delta logL = 0.0329227678667

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.025e+01  1.222e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.924e+00  1.000e+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:  9.665e-01  1.433e-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.151e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.92 +/- 1.00
Photon Flux (Free Index): 6.11e-08 +/- 6.53e-08
Energy Flux (Free Index): 1.27e-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/257957/cmap_HighResolution_338083201_338342401_4FGL_J2219.2-0342_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='1.27e-05', photon_flux_error='5.50e-08', dlogl='3.29e-02', energy_flux='1.29e-05', photon_flux2='6.11e-08', job_status='DONE', time_completed='2021-09-28 09:20:38.021844', photon_index_error2='1.00', photon_index2='2.92', ts='1.22', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.26e-05', EG='0.73', time_epoch_completed='1632846038.02', return_code='0', job_id='257957', GAL2='0.97', EG2='0.72', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='6.53e-08', ts2='1.30', photon_index='2.68' WHERE bin_id='381' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:20:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 257957: <4FGL_J2219.2-0342_daily_bin381> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin381> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:14 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:16 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:16 2021
Terminated at Tue Sep 28 09:20:38 2021
Results reported at Tue Sep 28 09:20:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin381 334.823 -3.7102 338083201 338342401 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

