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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin973
RA = 334.823, Dec = -3.7102
tmin = 491529601, tmax = 491788801
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='259878', job_status='RUN', time_executed='2021-09-28 09:14:03.598492', time_epoch_executed='1632845643.6' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259878/ft1_4FGL_J2219.2-0342_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259878/ft2_4FGL_J2219.2-0342_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259878/ft1_4FGL_J2219.2-0342_daily_bin973.fits outfile=/scratch/kocevski/259878/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin973.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=491529601.0 tmax=491788801.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.48
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259878/ft2_4FGL_J2219.2-0342_daily_bin973.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/259878/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin973.fits evtable="EVENTS" outfile="/scratch/kocevski/259878/ft1_filtered_4FGL_J2219.2-0342_daily_bin973.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259878/ft1_filtered_4FGL_J2219.2-0342_daily_bin973.fits" evtable="EVENTS" scfile=/scratch/kocevski/259878/ft2_4FGL_J2219.2-0342_daily_bin973.fits sctable="SC_DATA" outfile=/scratch/kocevski/259878/ltcube_491529601_491788801_4FGL_J2219.2-0342_daily_bin973.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/259878/ft2_4FGL_J2219.2-0342_daily_bin973.fits
.....................!
real 11.77
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259878/ft1_filtered_4FGL_J2219.2-0342_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/259878/ft2_4FGL_J2219.2-0342_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/259878/ltcube_491529601_491788801_4FGL_J2219.2-0342_daily_bin973.fits outfile=/scratch/kocevski/259878/expmap_491529601_491788801_4FGL_J2219.2-0342_daily_bin973.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/259878/ltcube_491529601_491788801_4FGL_J2219.2-0342_daily_bin973.fits
.....................!
real 191.07
user 185.60
sys 5.12

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/259878/ft1_filtered_4FGL_J2219.2-0342_daily_bin973.fits scfile=/scratch/kocevski/259878/ft2_4FGL_J2219.2-0342_daily_bin973.fits outfile=/scratch/kocevski/259878/cmap_491529601_491788801_4FGL_J2219.2-0342_daily_bin973.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259878/ft1_filtered_4FGL_J2219.2-0342_daily_bin973.fits scfile=/scratch/kocevski/259878/ft2_4FGL_J2219.2-0342_daily_bin973.fits outfile=/scratch/kocevski/259878/cmap_HighResolution_491529601_491788801_4FGL_J2219.2-0342_daily_bin973.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/259878/ft1_filtered_4FGL_J2219.2-0342_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/259878/ft2_4FGL_J2219.2-0342_daily_bin973.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259878/Model_4FGL_J2219.2-0342_daily_bin973.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/259878/ft1_filtered_4FGL_J2219.2-0342_daily_bin973.fits.....................!
real 53.26
user 51.76
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6983       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8239       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7519       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.746       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.5920       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.574       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4173       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.431       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4117       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .32996E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    26.695       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .52466       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0595       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=   5554.416     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2863 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6978        2.5646        .14529E-06    .18546E-04
   2  Prefactor     .10001E-03    51.993       -.16216E-05** at limit **
   3  Prefactor     .10000E-03    10.321        .24448E-07** at limit **
   4  Prefactor     14.890        75.371        .62952E-06    .10091E-04
   5  Prefactor     9.8213        10.796        .71414E-07   -.19551E-04
   6  Prefactor     6.7504        7.9609        .34450E-05   -.27171E-03
   7  Prefactor     .10000E-03    12.457        .34054E-07** at limit **
   8  Prefactor     3.1555        12.732        .10124E-05    .11319E-04
   9  Prefactor     52.961        21.308        .11788E-06   -.10431E-03
  10  Prefactor     .10000E-03    5.1684       -.46405E-07** at limit **
  11  Prefactor     23.743        16.191       -.32268E-06    .67385E-05
  12  Prefactor     .10000E-03    11.813       -.24138E-07** at limit **
  13  Prefactor     3.4874        5.2090        .16069E-06    .34123E-04
  14  Prefactor     .10001E-03    54.917        .18593E-05** at limit **
  15  Prefactor     .10000E-03    1.5924       -.10729E-06** at limit **
  16  norm          7.5919        4.3064        .61607E-06   -.13742E-03
  17  Prefactor     69.532        93.550       -.11511E-05   -.89014E-04
  18  norm          1.4170        1.3672        .55950E-07    .53518E-04
  19  Prefactor     32.458        52.031        .30293E-05    .41588E-04
  20  norm          1.4106        3.7490       -.82360E-06    .11350E-03
  21  Prefactor     .10074E-03    7.5088       -.33975E-06** at limit **
  22  norm          26.692        16.444        .35509E-06    .43600E-04
  23  Normalizat    .52477        .23851       -.37634E-05    .27619E-04
  24  Prefactor     1.0595        .13591        .45603E-06   -.45191E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69776
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 14.8901
  Prefactor  = 9.82134
  Prefactor  = 6.75045
  Prefactor  = 0.0001
  Prefactor  = 3.15553
  Prefactor  = 52.9608
  Prefactor  = 0.0001
  Prefactor  = 23.7425
  Prefactor  = 0.0001
  Prefactor  = 3.48745
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 7.59189
  Prefactor  = 69.5324
  norm       = 1.41703
  Prefactor  = 32.4581
  norm       = 1.41057
  Prefactor  = 0.000100743
  norm       = 26.6923
  Normalizat = 0.524772
  Prefactor  = 1.05947
 **********
 **   18 **HESSE 
 **********

 FCN=   5554.416     FROM HESSE     STATUS=OK           411 CALLS     3274 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6978        2.5425        .14138E-03   -1.5447    
   2  Prefactor     .10001E-03    52.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.890        74.467        .10382E-03   -1.4936    
   5  Prefactor     9.8213        10.748        .12785E-03   -1.5081    
   6  Prefactor     6.7504        7.9901        .77209E-03   -1.5188    
   7  Prefactor     .10000E-03    12.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1555        12.692        .22815E-03   -1.5353    
   9  Prefactor     52.961        21.292        .55116E-04   -1.4251    
  10  Prefactor     .10000E-03    5.1726        .16545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.743        16.187        .82202E-04   -1.4733    
  12  Prefactor     .10000E-03    11.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4874        5.1965        .20190E-03   -1.5334    
  14  Prefactor     .10001E-03    55.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6086        .91773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5919        4.3083        .54543E-03   -1.5157    
  17  Prefactor     69.532        93.645        .48124E-04   -1.4038    
  18  norm          1.4170        1.3487        .81513E-04   -1.5470    
  19  Prefactor     32.458        56.309        .70362E-04   -1.4568    
  20  norm          1.4106        4.0139        .10676E-03   -1.5470    
  21  Prefactor     .10074E-03    9.8288        .71608E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          26.692        16.433        .77536E-04   -1.4674    
  23  Normalizat    .52477        .25778        .39416E-03   -1.1128    
  24  Prefactor     1.0595        .15002        .17535E-03   -.90772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64127e-10
Minuit parameter uncertainties:
  1  2.54266
  2  0.00108572
  3  6.94573e-06
  4  66.731
  5  10.7497
  6  7.99139
  7  5.33719e-05
  8  12.6616
  9  21.2955
  10  3.80858e-06
  11  16.1899
  12  2.4507e-05
  13  5.19721
  14  0.0012991
  15  2.84158e-06
  16  4.30852
  17  93.8444
  18  1.34869
  19  56.401
  20  4.01464
  21  0.00540685
  22  16.4361
  23  0.258372
  24  0.150077
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.487e+00  5.197e+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.059e+00  1.501e-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.248e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259878/likelihoodResults_491529601_491788801_4FGL_J2219.2-0342_daily_bin973.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) = 5553.08423604
delta logL = 1.33157436926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5553.0823809
delta logL = 1.33342950573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4885       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4137       1.0000          .0000       10.000    
     3 'Normalizat'    .53890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5553.082     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5509        3.8184        .54121E-02   -.17332E-03
   2  Index         1.4190        .39591        .21730       -.56464E-04
   3  Normalizat    .53911        .21518        .87810E-01    .35526E-04
   4  Prefactor     1.0519        .13349        .39790E-01   -.20414E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55086
  Index      = 1.41897
  Normalizat = 0.539106
  Prefactor  = 1.05185
 **********
 **   18 **HESSE 
 **********

 FCN=   5553.082     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5509        4.8781        .14586E-03   -1.5331    
   2  Index         1.4190        .59297        .81865E-02   -.79835    
   3  Normalizat    .53911        .23710        .38902E-03   -1.1064    
   4  Prefactor     1.0519        .14756        .17576E-03   -.91021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65609e-09
Minuit parameter uncertainties:
  1  4.87867
  2  0.595857
  3  0.237549
  4  0.147617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259878': 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) = 5553.08230262
delta logL = 1.33350779083

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.551e+00  4.879e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.419e+00  5.959e-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.052e+00  1.476e-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.391e-01  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.52
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.42 +/- 0.60
Photon Flux (Free Index): 7.99e-09 +/- 9.99e-09
Energy Flux (Free Index): 3.32e-05 +/- 5.66e-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/259878/cmap_HighResolution_491529601_491788801_4FGL_J2219.2-0342_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', comment='SUCCESS', energy_flux2='3.32e-05', dlogl='1.33e+00', photon_flux2='7.99e-09', job_status='DONE', time_completed='2021-09-28 09:24:11.959545', photon_index_error2='0.60', photon_index2='1.42', ts='0.84', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.66e-08', energy_flux_error2='5.66e-05', EG='0.52', time_epoch_completed='1632846251.96', return_code='0', job_id='259878', GAL2='1.05', EG2='0.54', return_code2='0', photon_flux_error2='9.99e-09', ts2='3.52', photon_index='2.68' WHERE bin_id='973' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 259878: <4FGL_J2219.2-0342_daily_bin973> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin973> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:50 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:53 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:53 2021
Terminated at Tue Sep 28 09:24:12 2021
Results reported at Tue Sep 28 09:24:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin973 334.823 -3.7102 491529601 491788801 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 :                                   607.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

